frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo ago

Comments

bastawhiz•11mo ago
Is this a problem that people actually have?
xeromal•11mo ago
Fun side project man!
primitivesuave•11mo 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•11mo 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•11mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•11mo 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•11mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

The Making of Dark Castle

https://www.gamedeveloper.com/business/the-making-of-i-dark-castle-i-an-excerpt-from-the-secret-h...
1•AntiRush•48s ago•0 comments

Strategy Letter V (2002)

https://www.joelonsoftware.com/2002/06/12/strategy-letter-v/
1•crescit_eundo•4m ago•0 comments

A Fake Screen Fixed My macOS Space Switcher

https://jorviksoftware.cc/notes/2026/04/11/when-the-stars-align-redux
1•jonathan_hollin•5m ago•0 comments

The Brutal Reality of Today's Job Market 2026

https://maxjobintel.online/
1•videobroker•6m ago•0 comments

Ukraine and Weapons of Mass Destruction

https://en.wikipedia.org/wiki/Ukraine_and_weapons_of_mass_destruction
1•chistev•10m ago•1 comments

Jet Fuel Crunch Is Getting Severe with No Reprieve in Sight for Airlines

https://www.wsj.com/business/airlines/jet-fuel-crunch-is-getting-severe-with-no-reprieve-in-sight...
1•bookofjoe•10m ago•1 comments

After Me(One encrypted vault. One QR code. Your family gets everything)

https://www.myafterme.co.uk/
1•elufadeju•12m ago•0 comments

I Pick My Stack for Vibe Coding

https://tildehacker.com/how-i-pick-my-stack-for-vibe-coding
1•tildehacker•13m ago•0 comments

Show HN: Git why – log your agent reasoning trace along your code

https://hexapode.github.io/git-why/
3•pierre•19m ago•0 comments

AGI Is the Wrong Word

https://breaking-changes.blog/agi-is-here-part-2/
1•oakhan3•19m ago•0 comments

Democratic AI to serve the public – OneProject.org

https://oneproject.org/how-to-make-ai-serve-the-public/
2•cucumberbund•23m ago•0 comments

NetWatch v0.11.0 – TUI network diagnostics, now with connection filtering

https://github.com/matthart1983/netwatch
1•matthart1983•23m ago•0 comments

I built a free 30-day habit tracker in Google Sheets

1•polaritymaking•25m ago•0 comments

Ask HN: What is the most annoying part of scheduling meetings?

1•preston-kwei•25m ago•0 comments

Chromium Fingerprint Simulation Framework Assessment

https://www.questcontents.com/2026/04/chromium-fingerprint-simulation.html
1•imarand•25m ago•0 comments

Ask HN: Has anyone reconsidered Antivirus software after recent security news?

3•pants2•32m ago•1 comments

PandemicAlarm – Free disease outbreak tracker aggregating WHO, CDC, and ProMED

https://pandemicalarm.com
1•PixelShipper•32m ago•0 comments

I built a free Canadian tax estimator for self-employed people

https://nextindata.substack.com/p/i-built-a-free-canadian-tax-estimator
1•nazanki•36m ago•0 comments

AI Is Tipping the Scales Toward Hackers After Mythos Release

https://www.nbcnews.com/tech/security/anthropic-claude-mythos-ai-hackers-cybersecurity-vulnerabil...
6•thywis•37m ago•2 comments

Transaction-level provenance for AI art certificate/signed/license on every sale

https://arcvelvetos.web.app/verify?id=AwCCW6DLQgA4s5XVZ86X&type=sale
2•PCasinoAVOS•38m ago•0 comments

AI still can't figure out PowerPoint

https://www.perspectives.plus/p/ai-still-cant-figure-out-powerpoint
2•jukkan•38m ago•0 comments

LPM 1.0 – Video-Based Character Performance Model

https://large-performance-model.github.io/
1•LopRabbit•39m ago•0 comments

Anyone know how I can cancel this? I dont want it

https://old.reddit.com/r/wallstreetbets/comments/1siq4m2/anyone_know_how_i_can_cancel_this_i_dont...
3•simonpure•50m ago•0 comments

Tell HN: See the AI Doc

2•linsomniac•53m ago•1 comments

Why Aren't We Uv Yet?

https://aleyan.com/blog/2026-why-arent-we-uv-yet/
2•birdculture•58m ago•3 comments

Apple Silicon and Virtual Machines: Beating the 2 VM Limit (2023)

https://khronokernel.com/macos/2023/08/08/AS-VM.html
55•krackers•59m ago•14 comments

Heartbeat – open implementation of KAIROS, the always-on agent hiden in Claude C

https://github.com/uameer/heartbeat
1•usmame•59m ago•1 comments

The Polycorp Poly 1. New Zealand's school computer

https://www.classic-computers.org.nz/collection/poly1.htm
2•rbanffy•1h ago•0 comments

Ask HN: Why have we not stepped back on the moon again?

2•chirau•1h ago•3 comments

Ask HN: How did you specialize as a software engineer?

2•legerdemain•1h ago•3 comments