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/

Llwdc – Direct-to-fan storefront for tracks, stems, and sound packs

https://llwdc.com
1•sectapod•1m ago•0 comments

Xkcd: Trade

https://xkcd.com/3290/
1•Garbage•2m ago•0 comments

Show HN: Zetken CI/CD Studio

https://zetken.com/
1•BolatM•5m ago•0 comments

Is Stupidity Strength?(2019)

https://srconstantin.github.io/2019/10/29/is-stupidity-strength-3.html
1•num42•11m ago•0 comments

Wall Street turns on scrambling Treasury Secretary: 'Damage has been done'

https://www.msn.com/en-us/money/general/wall-street-turns-on-scrambling-trump-cabinet-member-dama...
1•petethomas•12m ago•0 comments

Interviewing in the Age of AI

https://www.dein.fr/posts/2026-05-28-interviewing-in-the-age-of-ai
2•fagnerbrack•13m ago•0 comments

Safe kernels are fast kernels: tile-rs next to Mojo 1.0

https://yijunyu.github.io/tile-rs-vs-mojo.html
1•yijunyu•16m ago•0 comments

Can Self-Hosting Be Simple?

https://tedium.co/2026/08/26/self-hosting-third-place-strategy/
1•pentagrama•16m ago•0 comments

Are we becoming dependent on tokens?

https://velocitycurve.substack.com/p/i-cannot-work-anymore-i-ran-out-of
1•GertLH•17m ago•0 comments

Number of Open Tech Jobs

https://www.trueup.io/job-trend
1•rickcarlino•20m ago•0 comments

Loadersz: Motion for Waiting States

https://loadersz.vercel.app/
1•thunderbong•23m ago•0 comments

Show HN: Small OSS experiment to re-create the 2.5B valued Instinct assistant

https://github.com/samagra14/openinstinct
2•samagra14•25m ago•0 comments

The Future Is for Everyone

https://about.fb.com/news/2026/08/the-future-is-for-everyone/
4•gmays•28m ago•0 comments

My full statement regarding DOOM Eternal

https://medium.com/@mickgordon/my-full-statement-regarding-doom-eternal-5f98266b27ce
1•jjwiseman•32m ago•0 comments

Closed City

https://en.wikipedia.org/wiki/Closed_city
2•sans_souse•34m ago•0 comments

Show HN: Critter TUI for reviewing GitHub PRs and agent changes

https://github.com/andyhmltn/critter
1•andy55a•36m ago•1 comments

Why Doctors Hate the Internet (2000)

https://www.wired.com/2000/04/why-doctors-hate-the-internet/
2•olalonde•37m ago•0 comments

Grand jury finds DeSantis administration "misappropriated" $10M

https://www.cbsnews.com/miami/news/grand-jury-report-hope-florida/
2•treetalker•38m ago•0 comments

Instinct is raising a $250M Series B

https://www.wsj.com/tech/ai/the-latest-viral-ai-assistant-rocketing-across-silicon-valley-abb46276
1•erex78•42m ago•0 comments

First patient to undergo live AI-assisted brain surgery has tumour removed

https://www.bbc.com/news/articles/cjwg5n7y68xo
3•gpjt•47m ago•0 comments

Roast My Startup

https://www.getstreek.com/
1•me_sleepy•48m ago•0 comments

Japanese avant-garde artist Yayoi Kusama dies aged 97

https://www.bbc.com/news/articles/c3v4k0re3vwo
2•tartoran•51m ago•0 comments

2026 Nepal Floods

https://en.wikipedia.org/wiki/2026_Nepal_floods
4•dredmorbius•53m ago•2 comments

The Self-Hosted SSO Tax: A Verified Tracker

https://techfuelhq.com/self-hosted/self-hosted-sso-tax-2026/
1•LKWOODIV•54m ago•0 comments

Ask HN: Do you think tariffs are about anything other than creating inflation?

2•dfps•56m ago•3 comments

Apple Maps Launches Ads on iPhone

https://9to5mac.com/2026/08/25/apple-maps-launches-ads-on-iphone-heres-whats-new/
2•Garbage•58m ago•0 comments

Dissecting the Apple M1 GPU, the End

https://alyssarosenzweig.ca/blog/asahi-gpu-part-n.html
3•amemi•1h ago•2 comments

Meta's self-inflicted resignation-wave

https://blog.pragmaticengineer.com/the-pulse-metas-self-inflicted-resignation-wave/
8•andsoitis•1h ago•0 comments

48 Node B300 cluster live in 3-5 weeks

1•anwar19•1h ago•0 comments

What Is a "Jeopardy "-Worthy Computer (2015)

https://today.umd.edu/what-jeopardy-worthy-computer-90e7a2a8-6faa-4ab2-95d3-c3a6d6efb20b
1•andsoitis•1h ago•0 comments