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/

1•Bolat14•4s ago

Wealthy Americans Find Another Tax-Free Way to Invest

https://www.wsj.com/finance/investing/a-roth-ira-on-steroids-wealthy-americans-find-another-tax-f...
1•Betelbuddy•2m ago•0 comments

Zig: Pointer Stability for ArrayLists

https://ziglang.org/devlog/2026/#2026-08-27
1•tosh•3m ago•0 comments

Scaling Domain Data Repetition in LLM Pretraining

https://arxiv.org/abs/2608.14071
1•gmays•6m ago•0 comments

Emacs vs. Vim 2026: 24.3% vs. 8% Usage, 20x Memory Gap

https://tech-insider.org/emacs-vs-vim-2026/
1•pir8life4me•8m ago•0 comments

Free and Open-Source Web Search for Your AI Agents

https://pypi.org/project/simurg/
1•lebagetdefrance•9m ago•0 comments

Remembering the King who Drowned

https://komando1.substack.com/p/remembering-the-king-who-drowned
1•inglor_cz•9m ago•1 comments

Show HN: FinBridge – Korean stock market data for AI agents (MCP)

https://www.gronox.kr/
1•gronox-kr•11m ago•0 comments

Keeping an open source project going when GitHub stars slow down

https://twitter.com/paul_h0rn/status/2094070350120091915
2•BlueBerry2001•12m ago•0 comments

Ethical Issues in Advanced Artificial Intelligence

https://nickbostrom.com/ethics/ai
2•Anon84•13m ago•0 comments

Show HN: Cushion – PouchDB on Deno KV

https://jsr.io/@mikehall314/cushion
3•mikehall314•13m ago•0 comments

DNS Abuse and Criminal Infrastructure

https://labs.ripe.net/author/andrew_campling/dns-abuse-and-criminal-infrastructure-beyond-definit...
2•jruohonen•14m ago•0 comments

Doom Played on Series of 555 Timers

https://hackaday.com/2026/08/28/doom-played-on-series-of-555-timers/
2•nickbild•14m ago•0 comments

Europe's summer drought is so extreme that desertification is a growing threat

https://fortune.com/2026/08/29/europe-summer-drought-desertification-threat-rivers-fish/
7•Brajeshwar•15m ago•0 comments

Getting into Flow with AI Coding

https://www.natashatherobot.com/p/flow-ai-coding
2•ingve•16m ago•0 comments

Founder Mode vs. Founder Drift

https://keithbrown.com/founder-mode-vs-drift/
1•tech-pulse•16m ago•0 comments

Open Pinball Database

https://opdb.org/
1•Tomte•18m ago•0 comments

Search BioNumbers – The Database of Useful Biological Numbers

https://bionumbers.hms.harvard.edu/Search.aspx?task=searchbypop
1•Tomte•19m ago•0 comments

Ask HN: Fun Productive Phone Hobbies?

2•bix6•20m ago•3 comments

Iran's Unit 4000 and the new architecture of outsourced terrorism

https://www.israelnationalnews.com/news/432418
1•pir8life4me•26m ago•0 comments

Show HN: An anonymous, no-signup alert app – try it live with GitHub incidents

https://thenotifier.app/developers/see-it-work/
1•bubbamack•29m ago•0 comments

7th Branch Prediction Championship: Part I

https://www.sigarch.org/7th-branch-prediction-championship-part-i/
1•jruohonen•29m ago•0 comments

Robots: We Can't Look Away – and Can't Stop Worrying

https://www.bajura.online/2026/08/robots-why-we-cant-look-away-and-cant.html
1•AllForAll•29m ago•0 comments

Rapidly spreading genetic variants make parasites resistant to malaria treatment

https://www.brown.edu/news/2026-08-17/malaria-drug-resistance
1•gmays•30m ago•0 comments

My BC-250 Journey (With 40 CUs Unlocked)

https://worldofmatthew.com/blog/bc250/
1•worldofmatthew•30m ago•0 comments

China Tobacco products have likely caused at least 57M deaths since 1990

https://www.theexamination.org/articles/deadliest-company-in-the-world
3•cwwc•31m ago•1 comments

Icelanders vote 'no' to talks aimed at joining the EU in close referendum

https://www.npr.org/2026/08/29/nx-s1-5948759/iceland-european-union-referendum-vote
3•elsewhen•32m ago•0 comments

The Law of Leaky Abstractions

https://www.joelonsoftware.com/2002/11/11/the-law-of-leaky-abstractions/
2•maayank•33m ago•2 comments

Dario Amodei says Anthropic is 'not interested in destroying anyone'

https://www.businessinsider.com/dario-amodei-anthropic-not-destroying-saas-2026-8
1•potatobox•33m ago•1 comments

Show HN: Open SAR-COP – AI-generated common operating picture for disasters

https://open-sar-cop.github.io
1•Euraxluo•34m ago•0 comments