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•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/

Agentic Search Models

https://softwaredoug.com/blog/2026/05/11/the-new-agentic-search-models.html
1•Tomte•8s ago•0 comments

If I ruled the world: Michael Sandel (2012)

https://www.prospectmagazine.co.uk/culture/50440/if-i-ruled-the-world-michael-sandel
1•robtherobber•24s ago•0 comments

Access Is Not Ownership

https://aquisthoughts.substack.com/p/access-is-not-ownership
1•ethanplant•43s ago•0 comments

Int a = 5; a = a++ + ++a; a =? (2011)

https://gynvael.coldwind.pl/?id=372
1•e-topy•1m ago•0 comments

TeamPCP's Mini Shai-Hulud Is Back

https://www.stepsecurity.io/blog/mini-shai-hulud-is-back-a-self-spreading-supply-chain-attack-hit...
1•segmenta•1m ago•0 comments

FastChart: Native PHP extension for server-side charts, barcodes, and QR codes

https://github.com/iliaal/fastchart
1•ilia-a•3m ago•1 comments

Human-in-the-Loop Done Right

https://www.bicameral-ai.com/blog/human-in-the-loop-done-right
1•jinhkuan•3m ago•0 comments

Knowledge is Cheap. Intelligence isn't

https://apattichis.substack.com/p/knowledge-is-cheap-intelligence-isnt
1•apattichis•4m ago•1 comments

FHIR Toolkit – Inline FHIR Validation for IntelliJ / JetBrains IDEs

https://plugins.jetbrains.com/plugin/31676-fhir-toolkit
1•adhikaribipin•4m ago•0 comments

C3X: Open-source cloud cost estimates for Terraform, no API key needed

https://github.com/c3xdev/c3x
1•cap_andrea•4m ago•0 comments

Viewllm – one command to view and share HTML reports from AI agents

https://github.com/yz671/viewllm
1•yz671•5m ago•0 comments

Unreal Engine 5.8 Preview

https://forums.unrealengine.com/t/unreal-engine-5-8-preview/2721597
3•ilreb•5m ago•0 comments

Hantavirus outbreak exposes uncertainty about how disease spreads

https://www.nature.com/articles/d41586-026-01512-w
1•bookofjoe•5m ago•1 comments

Rise of the AI Soldiers

https://time.com/article/2026/03/09/ai-robots-soldiers-war/
1•eloisius•8m ago•0 comments

Show HN: Ytree v3.0.0-alpha, an AI-assisted rewrite towards feature completeness

https://github.com/robkam/ytree
1•robkam•9m ago•0 comments

Additively Manufactured Density-Graded Dual-Material Auxetic Structures

https://www.mdpi.com/2072-666X/17/5/570
1•PaulHoule•9m ago•0 comments

Once again, SpaceX has set a new record for the tallest rocket ever built

https://arstechnica.com/space/2026/05/spacex-completes-fueling-test-setting-stage-for-first-launc...
2•Brajeshwar•9m ago•1 comments

Should You Trust the Netflix Top? A Statistical Analysis

https://www.statsignificant.com/p/should-you-trust-the-netflix-top
1•speckx•9m ago•0 comments

Tellie: A Teleprompter that listens. Vibe coded it while my granddaughter slept

https://tellie.skytech.io
1•SteveChazin•9m ago•1 comments

The Teleport Contest: Port >440k LoC (NetHack) from C to JavaScript

https://mazesofmenace.ai/
1•abgruszecki•10m ago•0 comments

Regatta Starting Stations – Chi-Squared Continued

https://entropicthoughts.com/regatta-starting-stations
1•ibobev•11m ago•0 comments

Async I/O in Zig 0.16, today

https://lalinsky.com/2026/05/11/async-io-in-zig-016-today.html
1•ibobev•11m ago•0 comments

The SiFive P570 Gen 3: A System Perspective

https://www.sifive.com/blog/p570-gen-3-a-system-perspective
2•fork-bomber•15m ago•0 comments

The SiFive Performance P570 Gen 3

https://www.sifive.com/blog/inside-the-sifive-performance-p570-gen-3
2•fork-bomber•15m ago•0 comments

Why some mathematicians think we should abandon pi

https://www.scientificamerican.com/article/why-some-mathematicians-think-we-should-abandon-pi/
2•tkdc926•17m ago•1 comments

Show HN: Kimiflare, Kimi K2.6 as a Coding Agent on Cloudflare Workers AI

1•sinameraji•17m ago•0 comments

Fast Worker Pool for Golang

https://github.com/maurice2k/ultrapool
1•p0seidon•17m ago•0 comments

I Helped Craft the 25th Amendment. It Was Never Meant to Oust a President

https://www.politico.com/news/magazine/2026/05/08/25th-amendment-misunderstanding-feerick-00909681
2•Tomte•17m ago•0 comments

OpenAI Just Launched Daybreak

https://abz.global/technology/openai-just-launched-daybreak-cybersecurity-is-becoming-part-of-the...
1•marian_abz•18m ago•0 comments

Photobiomodulation for cognitive dysfunction (Brain Fog) in post-Covid-19

https://www.thelancet.com/journals/eclinm/article/PIIS2589-5370(25)00665-0/fulltext
1•01-_-•18m ago•0 comments