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/

C64 Bass Guitar – Cool to Be Square Wave? [video]

https://www.youtube.com/watch?v=_kDhpFaf4EY
1•breve•33s ago•0 comments

Fast16: High-Precision Software Sabotage 5 Years Before Stuxnet

https://www.sentinelone.com/labs/fast16-mystery-shadowbrokers-reference-reveals-high-precision-so...
1•ledoge•37s ago•0 comments

Thermoacoustic heat pumps on the verge of commercial breakthrough

https://www.pv-magazine.com/2026/04/23/thermoacoustic-heat-pumps-on-the-verge-of-commercial-break...
1•ablation•2m ago•0 comments

Ask HN: Is Elon Musk Overrated?

1•wasimsk•2m ago•0 comments

RAG pipelines, leaking PII into vector databases and nobody's talking about it

https://comply-tech.co.uk/blog/rag-pipeline-pii-vector-embeddings.html
1•ComplyTechAPI•3m ago•0 comments

I built a kinetic reading engine to eliminate "page fright"

https://kin-txt.com/
1•pauljrad•4m ago•0 comments

My IKEA clock and software design

https://stitcher.io/blog/my-ikea-clock
2•brentroose•5m ago•0 comments

Got the Rust dream job, then AI happened

https://old.reddit.com/r/rust/comments/1stj607/got_the_rust_dream_job_then_ai_happened/
1•mellosouls•7m ago•0 comments

S. Korea police arrest man over AI image of runaway wolf that misled authorities

https://www.bbc.com/news/articles/c4gx1n0dl9no
1•giuliomagnifico•7m ago•0 comments

The Authentication Layer

https://stylman.substack.com/p/the-authentication-layer
1•hosteur•10m ago•0 comments

Analysis and Design of Developable Surfaces for Shipbuilding(1988) [pdf]

https://apps.dtic.mil/sti/tr/pdf/ADA327058.pdf
1•nill0•15m ago•0 comments

Recommender Systems Need the Tobacco Treatment

https://klemenvodopivec.substack.com/p/recommender-systems-need-the-tobacco
1•sunandsurf•18m ago•0 comments

Welcome to Gas City

https://steve-yegge.medium.com/welcome-to-gas-city-57f564bb3607
3•taheris•20m ago•0 comments

Vmsandbox.net: Wire up networks of Linux VMs in the browser

https://vmsandbox.net/
1•x3y1•21m ago•1 comments

GitHub Actions Key, but Resources Allocated to Other Areas

https://github.com/cli/cli/issues/5416
1•birdculture•23m ago•0 comments

Shibuya – Haskell Data Pipelines

https://github.com/shinzui/shibuya
1•Vosporos•23m ago•0 comments

DDD – Data Display Debugger

https://www.gnu.org/software/ddd/
2•mpweiher•25m ago•0 comments

Ask HN: Chrome, Brave, Firefox or Something Else?

2•wasimsk•27m ago•2 comments

I caught an Illegal Russian Spy [video]

https://www.youtube.com/watch?v=xjo0iLssbI8
1•benterix•28m ago•0 comments

Ovie – One view is enough

https://github.com/kyutai-labs/ovie
1•Sebastian_09•29m ago•0 comments

A GUI disk image writer for macOS. For when you're tired of dd

https://github.com/tenox7/dufus/
1•tenox•30m ago•0 comments

Fit.ly – AI Outfit Generation

https://fitly-app.onrender.com/
1•seanwarrren•31m ago•1 comments

The biggest iceberg is almost gone

https://europeancorrespondent.com/en/r/the-worlds-biggest-iceberg-is-almost-gone
1•stared•32m ago•1 comments

VoxeliumX – easy open-source tool to run Minecraft servers

1•Cheesehamster•37m ago•0 comments

Netherlands reaches deal to cut reliance on U.S. cloud tech

https://nltimes.nl/2026/04/24/netherlands-reaches-deal-european-cloud-company-decrease-us-tech-re...
2•01-_-•40m ago•0 comments

Free Online Tools for PDF, Image and Video – ToolHive

https://trytoolhive.com
1•farahfarah•41m ago•0 comments

Gecko: A fast GLR parser with automatic syntax error recovery

https://vnmakarov.github.io/parsing/compilers/c/open-source/2026/04/22/gecko-glr.html
3•fanf2•43m ago•0 comments

The Bracket – A Government Man

https://agovtman.substack.com/p/the-bracket
1•jjar•47m ago•0 comments

Onio.club

https://onio.club/
1•kkoncevicius•49m ago•0 comments

Canada's AI Startup Cohere Buys Germany's Aleph Alpha to Expand in Europe

https://www.reuters.com/legal/transactional/canadas-cohere-germanys-aleph-alpha-announce-merger-h...
1•ipieter•50m ago•0 comments