frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Automatically add missing "async/await" keywords to your TypeScript code

https://github.com/stanNthe5/typescript-autoawait
7•theThree•1y ago

Comments

bastawhiz•1y ago
Is this a problem that people actually have?
xeromal•1y ago
Fun side project man!
primitivesuave•1y ago
I took a peek at the implementation - I think this only works for a case where the typing explicitly contains the string "Promise". For example, I don't think it would work if I use `SomeInterface["some_promise_key"]` or might incorrectly add an async if I use `Awaited<Promise<...>>`.

I think what you're trying to build might be best served by Typescript's VFS - https://www.npmjs.com/package/@typescript/vfs. You can load the local files into an in-memory type system, and quickly extract async/await hints that might be more useful for a typical TS developer. I think there's a lot of really interesting static analysis you could do to improve async/await safety, as it certainly leads to issues from time to time.

joshstrange•1y ago
I do not want to be mean but I think you'd be much better served with ESLint rules to yell at you when you don't await when you should or do when you shouldn't.

This should _not_ be an automatic operation since it can change behavior in ways that will be unclear to the developer (completely undoing any gain from them being added automatically).

theThree•1y ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•1y ago
I created a ticket, using comments is not necessary because there is already the `void` syntax for when you don't want to wait:

https://github.com/stanNthe5/typescript-autoawait/issues/1

nextweek2•1y ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

AI Steps Off the Screen

https://epics.tech/posts/2026-06-23-ai-steps-off-the-screen/
1•epicsagas•1m ago•0 comments

Benchmark object storage in objects/s, not GB/s

https://fractalbits.com/blog/objects-per-second/
2•zzsheng•11m ago•0 comments

Dietary guidelines do not yield sufficient flavanol for cardiovascular benefit

https://pubs.rsc.org/en/content/articlehtml/2026/fo/d6fo00867d
1•littlexsparkee•12m ago•0 comments

AxLLM

https://axllm.dev/
1•handfuloflight•14m ago•0 comments

RIP Fable

https://fable.rip
2•opndragoon•17m ago•0 comments

Lucid to lay off roughly 18% of U.S. workforce, COO Marc Winterhoff leaves

https://www.cnbc.com/2026/06/22/lucid-layoffs-evs.html
1•mgh2•22m ago•0 comments

Clean sweep for Mamdani-backed candidates in New York's Democratic primary

https://www.bbc.com/news/articles/clye652m41po
2•mikhael•32m ago•0 comments

2026 vs. 1996 Chevrolet Blazer IIHS crash test

https://www.youtube.com/watch?v=4U8Ero-3GxI
3•plun9•34m ago•2 comments

VoltanaLLM: Energy-Efficient LLM Serving

https://supercomputing-system-ai-lab.github.io/projects/voltana/
2•matt_d•36m ago•0 comments

2003-era DDR2 memory prices jump up to 60%

https://www.tomshardware.com/pc-components/dram/ddr2-memory-prices-jump-up-to-60-percent
2•pkaeding•37m ago•1 comments

Sakana Fugu Technical Report

https://www.chapterpal.com/s/7ff4f6ba/sakana-fugu-technical-report
1•theanonymousone•37m ago•1 comments

Show HN: Deploy to Vercel, Netlify, Railway, Render, Cloudflare in 1 Command

https://xiaohou2503687-design.github.io/shipfast-oss/
1•shipfastai•37m ago•0 comments

Intel shareholder sues to void deal giving U.S. gov $11B in stock for free

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6985440
4•de6u99er•41m ago•1 comments

Sakana Fugu Ultra promises to deliver "the best frontier-level performance"

https://www.theverge.com/ai-artificial-intelligence/953904/sakana-fugu-ai
1•theanonymousone•45m ago•1 comments

TSMC: 36.1 A 32Gb/s 10.5Tb/s/mm 0.6pJ/b UCIe-Compliant Low-Latency Interface 3nm

https://ieeexplore.ieee.org/document/10904767
2•Alien1Being•46m ago•0 comments

Trump Gets Negative Reviews Internationally as Fewer Say US Is Reliable Partner

https://www.pewresearch.org/global/2026/06/23/trump-gets-negative-reviews-internationally-as-fewe...
3•Bondi_Blue•46m ago•0 comments

OpenAI spending hit $34B last year ahead of planned IPO

https://www.ft.com/content/e15b0d7e-ff6b-4f16-ba7a-4068feddb828
1•1vuio0pswjnm7•47m ago•1 comments

The Junior Developer Problem Is Becoming a Senior Developer Problem

https://www.vincentschmalbach.com/the-junior-developer-problem-is-becoming-a-senior-developer-pro...
3•vincent_s•47m ago•0 comments

Show HN: Fork.ai – branch any AI answer into a mind map instead of a chat log

https://forkai.in
1•gokulmc•49m ago•0 comments

Conspiracy Theories, Spontaneous Orders, and Global Politics [pdf]

https://isonomiaquarterly.com/wp-content/uploads/2025/11/massimino-pfwo.pdf
2•brandonlc•49m ago•1 comments

Lippmann Color Plates

https://www.eastman.org/event/workshops/lippmann-color-plates
1•andsoitis•52m ago•0 comments

Statement from Five Eyes agencies on cyber risk

https://www.ncsc.gov.uk/news/the-ai-shift-in-cyber-risk-why-leaders-must-act-now
2•reasonableklout•52m ago•1 comments

The Rolling Coup

https://www.thenation.com/article/politics/trump-rolling-coup/
2•aanet•53m ago•0 comments

Lippmann Photography

https://www.jonhilty.com/lippmann
1•andsoitis•53m ago•0 comments

MSc Thesis – The Limits of Generalized Sync

https://aaltodoc.aalto.fi/server/api/core/bitstreams/d485ca46-ef01-41bc-ae4c-d468afb209a8/content
1•bebraw•56m ago•1 comments

A Dark Dimension Could Link Two of the Universe's Great Unknowns

https://www.quantamagazine.org/a-dark-dimension-could-link-two-of-the-universes-great-unknowns-20...
2•anujbans•56m ago•0 comments

Distribution of Lightning

https://en.wikipedia.org/wiki/Distribution_of_lightning
1•nomilk•59m ago•0 comments

Mayors Push Data Center Rules to Protect Infrastructure

https://fivetakes.news/40-mayors-worldwide-endorse-a-pact-to-shape-data-center-development-ap-news
1•mmeirovich•1h ago•0 comments

Pizza wheels are bad and Japanese toilets are great

https://www.noahpinion.blog/p/pizza-wheels-are-bad-japanese-toilets
1•rwmj•1h ago•0 comments

Performance of WebAssembly Runtimes in 2026

https://00f.net/2026/06/23/webassembly-runtimes-2026/
2•theanonymousone•1h ago•0 comments