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/

Book Review: Orality and Literacy

https://www.astralcodexten.com/p/your-book-review-orality-and-literacy
1•Michelangelo11•1m ago•0 comments

TSMC considers making advanced memory chips

https://www.reuters.com/world/asia-pacific/tsmc-considers-making-advanced-memory-chips-informatio...
5•mfiguiere•5m ago•0 comments

Open-source lightning detector PCB that runs for months (2-day design)

https://solderable.dev/blog/storm-tracker-lightning-detector
1•Samanthajeanneb•8m ago•0 comments

Show HN: A Cyberpunk Music Mixer

https://un.bounded.cc/
1•hirako2000•11m ago•0 comments

Knives manufactured from human feces do not work

https://www.sciencedirect.com/science/article/pii/S2352409X19305371
2•limbicsystem•12m ago•1 comments

The Intensional Model in Disguise

https://fzakaria.com/2026/11/06/the-intensional-model-in-disguise
1•setheron•17m ago•0 comments

A First-Look Image of M87* from the 2026 EHT Monitoring Campaign

https://iopscience.iop.org/article/10.3847/2515-5172/aebd91
2•ccgreg•21m ago•1 comments

Attention, and the Things We're Avoiding

https://alejandroandr.eu/intimacy-for-hire
2•re6tor•23m ago•0 comments

Microsoft Winding Down Oracle Deal to Rent AI Cloud Capacity

https://www.bloomberg.com/news/articles/2026-11-06/microsoft-is-winding-down-oracle-deal-to-rent-...
2•petethomas•23m ago•0 comments

Measuring how AI agents handle everyday wet-lab science

https://openai.com/index/measuring-how-ai-agents-handle-wet-lab-science/
3•asdfasdf45•23m ago•0 comments

Tesla's Cybertruck heads for an exit after years of hype and division

https://apnews.com/article/cybertruck-cybercab-discontinued-musk-sales-6938a145d365f8e31b26bb9c45...
3•jamesgill•28m ago•0 comments

Combining freelancing, social networking, and AI

https://freelancer.svoxx.com/int/en
1•svoxx•30m ago•0 comments

Developers say they didn't know gov't was buying user data

https://404privacy.com/blog/app-developers-say-they-didnt-know-user-data-went-to-the-government/
1•un-nf•31m ago•1 comments

QueCarrera – Pick a university degree in Madrid, with cut-off grades

https://quecarrera.vercel.app
1•gustavogb•32m ago•0 comments

Anthrax outbreak in Africa's oldest national park kills hippos

https://abcnews.com/International/anthrax-outbreak-virunga-national-park-kills-dozens-hippos/stor...
2•gmays•32m ago•0 comments

One of the greatest scam artists ever used Ghana’s colonial past to get rich

https://foreignpolicy.com/2023/12/03/con-artist-global-scam-ghana-anansis-gold/
3•prmph•37m ago•0 comments

1994 After Dark Files Rat Race, Ported to the Browser

https://rat-race.heyitsjam.es/
1•shijie•38m ago•0 comments

Elon Musk is about to learn how much America hates him

https://www.independent.co.uk/voices/elon-musk-donald-trump-midterms-republican-starlink-b3079726...
10•Zigurd•43m ago•0 comments

What Is Pico Ballooning?

https://traquito.github.io/pico-balloons/
1•gregsadetsky•43m ago•0 comments

US warns China it must 'immediately' meet terms of Busan trade deal

https://www.ft.com/content/391bb785-0247-4c39-b53b-35007187d603
3•madihaa•43m ago•0 comments

Mineral-forming method removes over 99% of radioactive technetium from waste

https://phys.org/news/2026-11-mineral-method-radioactive-technetium-liquid.html
2•titusblair•44m ago•0 comments

Ask HN: Are AI-written reviews a safety risk? Evidence from ICLR2027 scores

1•fsabau•44m ago•0 comments

Show HN: We built an async interview engine to get published on HackerNoon

https://journalistic.tech/
1•smooke•45m ago•0 comments

Show HN: Realtime sync engine without any new infra

https://github.com/tanishqkancharla/tandem
1•tanishqkanc•47m ago•0 comments

New Research Tests Whether AI Models Know Their Own Thoughts

https://www.quantamagazine.org/new-research-tests-whether-ai-models-know-their-own-thoughts-20261...
1•dogscatstrees•47m ago•0 comments

How I Learned to Stop Worrying and Love AI

https://koenvangilst.nl/lab/how-i-stopped-worrying-and-learned-to-love-ai
3•vnglst•48m ago•1 comments

FMF Jailbreak Rating Framework for Frontier Cyber Threats

https://www.frontiermodelforum.org/updates/introducing-the-fmf-jailbreak-rating-framework-for-fro...
1•pretext•49m ago•0 comments

Anthropic to press ahead with November IPO targeting $1.5T valuation

https://www.ft.com/content/314e17df-e7af-4814-b208-70a0557cb452
4•mfiguiere•49m ago•0 comments

Ballast – cold email infrastructure with AI and MCP

https://ballast.to
1•yetanotherdevz•49m ago•1 comments

Teaching AI to build scientific models

https://www.anthropic.com/research/teaching-ai-to-build-scientific-models
2•pretext•50m ago•0 comments