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/

Missed shifts were costly to this McDonald's. An app has fixed the problem

https://text.npr.org/nx-s1-5893721
1•williadc•4m ago•0 comments

Sick of A.I. Slop? So Are Tech Giants

https://www.nytimes.com/2026/08/17/technology/ai-slop.html
1•uxhacker•8m ago•0 comments

Show HN: An open source alternative to Google's Critique

https://twigg.vc
1•andrebianchessi•9m ago•0 comments

USS Benfold Stalled and Lost Power in the South China Sea for Four Days

https://news.usni.org/2026/08/14/uss-benfold-was-stalled-in-the-south-china-sea-for-four-days-aft...
1•Gaishan•9m ago•0 comments

Columbia House Is Shutting Down

https://pitchfork.com/story/columbia-house-is-shutting-down/
3•ChrisArchitect•18m ago•1 comments

Fires on the Plain: Both Ends Burning (2007)

https://www.criterion.com/current/posts/473-fires-on-the-plain-both-ends-burning
1•cocacola1•23m ago•0 comments

Show HN: An n8n-like orchestration toolkit for DeepSeek harnesses

https://github.com/ahamoment-101/Open-DeepSeek-Harness-Desktop
1•darrenzhang•26m ago•0 comments

Creepy Insurers?

https://matthewekahn.substack.com/p/creepy-insurers
1•NomNew•28m ago•0 comments

I built an app that hides encrypted messages inside normal emojis

https://apps.apple.com/us/app/imp-secret-messages/id6794774885
1•oliverhann•32m ago•0 comments

California's new tire efficiency rules could save drivers $1B a year

https://grist.org/transportation/californias-new-tire-efficiency-rules-could-save-drivers-1b-a-year/
7•littlexsparkee•32m ago•1 comments

25 Years of Haiku: From "Ok, Let's Start" to the Present

https://www.desktoponfire.com/haiku_inc/969/25-years-of-haiku/
4•fork-bomber•33m ago•2 comments

Google plans to stop making Pixel products in China in 2027

https://asia.nikkei.com/spotlight/supply-chain/exclusive-google-plans-to-stop-making-pixel-produc...
2•spenvo•39m ago•0 comments

Help Peer

https://www.seangoedecke.com/help-peer/
3•gfysfm•40m ago•0 comments

Show HN: Honeymatcha.io connect your Grok bots for dating, meetups, anything

https://honeymatcha.io
1•JaiRathore•41m ago•1 comments

Show HN: Build beautiful web apps faster with UiSvelte

https://github.com/sappsdev/ui-svelte
1•victorriba•42m ago•0 comments

A candy brand discovered TikTok made an AI clone of its founder to run ads [video]

https://www.youtube.com/watch?v=itovmsMwus0
4•navs•45m ago•0 comments

Satellite operators are in panic mode due to a worsening launch crisis

https://arstechnica.com/space/2026/08/theres-a-huge-launch-crunch-right-now-and-it-will-probably-...
1•jnord•59m ago•0 comments

S-1 – Independent Company Studies

https://s-1.vercel.app/
10•simonpure•1h ago•0 comments

Unslop my deck – upload slide decks, read less slop

https://unslopmydeck.xyz/
1•fkodom•1h ago•1 comments

What's Better Than Binary? – Advent of Computing Episode 187

https://adventofcomputing.libsyn.com/episode-187-whats-better-than-binary
2•matt_d•1h ago•0 comments

The Benchmarkpocalypse

https://danluu.com/benchpocalypse/
3•cyndunlop•1h ago•0 comments

Show HN: Turtle – Web Browser written from scratch for 2 years

4•coolwulf•1h ago•6 comments

.NET 11 Preview 7 is now available

https://devblogs.microsoft.com/dotnet/dotnet-11-preview-7/
1•Hixon10•1h ago•1 comments

Email Client for the Terminal?

5•ewjloop•1h ago•3 comments

Dial-up internet – made a thing that lets you do it again

https://56k.rip/
4•henrychannel•1h ago•2 comments

Show HN: SacredCal – A 13-month, 364-day calendar built around seven-day cycles

https://sacredcal.one
1•dealancer1•1h ago•1 comments

Three different papers pushed to ArXiv proving same 1986 conjecture; all use AI

https://twitter.com/Quasilocal/status/2089408301427568691
2•pfdietz•1h ago•0 comments

Decoding .heic: How the code works under the hood

https://heic-decoding.vercel.app/
1•suolex•1h ago•0 comments

Nested QR Codes

https://alloc.dev/2026/08/17/nested_qr_codes
1•Retro_Dev•1h ago•0 comments

Você realmente precisa de tudo isso para fazer um site?

https://opuscore.dev/
1•pragidi•1h ago•0 comments