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/

Vibe, A single-header lock-free networking library for Linux

https://github.com/xtellect/vibe
1•enduku•1m ago•0 comments

Avoiding and reducing microplastic false positives from dry glove contact

https://pubs.rsc.org/en/content/articlelanding/2026/ay/d5ay01801c
1•efavdb•2m ago•0 comments

Show HN: We rebuilt the archived Kubernetes Dashboard in React 19 and Go

https://kubernetes-dashboard.com/
1•isms-core-adm•2m ago•0 comments

The Original 1965 Gatorade Recipe

https://eatshistory.com/the-original-1965-gatorade-recipe-we-made-the-drink-that-started-a-billio...
1•cratermoon•4m ago•1 comments

Automating FPGA-Based Network Switches with Protocol Adaptive Customization

https://arxiv.org/abs/2604.21881
1•PaulHoule•7m ago•0 comments

SQLite Code of Ethics

https://sqlite.org/codeofethics.html
2•zdgeier•8m ago•0 comments

Project Wycheproof tests crypto libraries against known attacks

https://github.com/C2SP/wycheproof
1•PaulHoule•13m ago•0 comments

Show HN: AirScore – Daily air-quality emails tailored to household conditions

https://getairscore.com
1•JHARDIMAN•13m ago•1 comments

Show HN: Claude-pee: use Claude -p without the programmatic usage credit pool

https://github.com/sbhattap/claude-pee/tree/main
2•subarnab•17m ago•0 comments

Microbial Dark Matter and the Search for Life on Earth

https://mceglowski.substack.com/p/microbial-dark-matter-and-the-search
1•idlewords•18m ago•0 comments

Mystery Microsoft bug leaker keeps the zero-days coming

https://www.theregister.com/security/2026/05/13/disgruntled-researcher-releases-two-more-microsof...
4•e12e•20m ago•0 comments

Show HN: Grabbit: Search secondhand marketplaces in one place

https://grabbit.app
1•RedMustard•22m ago•0 comments

Short-Term Dietary Intervention Alters Physiological Profiles Relevant to Ageing

https://onlinelibrary.wiley.com/doi/10.1111/acel.70507
3•bookofjoe•24m ago•0 comments

Claude -p headless mode cannot use Max limits, will fall under API plan

4•forgingahead•25m ago•2 comments

Israeli Tech Exposes Users of Musk's Starlink Satellite-Based Internet

https://www.haaretz.com/israel-news/security-aviation/2026-05-12/ty-article-magazine/.premium/sta...
4•bhouston•26m ago•0 comments

Show HN: Abliteration – made-to-order training data for classifiers and evals

https://abliteration.ai/use-cases/synthetic-data
1•thomadev0•27m ago•1 comments

I spent months fighting VS Code webviews, so I built a universal protocol

https://oxp.sh/
1•aldgar•32m ago•0 comments

Scorched Earth 2000 is back

http://www.scorch2000.com/web/
5•meshko•33m ago•2 comments

PSF Welcomes Hudson River Trading (HRT) as a Visionary Sponsor

https://pyfound.blogspot.com/2026/05/psf-welcomes-hudson-river-trading-hrt.html
1•lumpa•34m ago•0 comments

126 Chrome extensions collected WhatsApp data through undisclosed servers

https://malext.io/reports/WaSteal/
1•p_stuart82•36m ago•0 comments

Trump's Disappearing China Hawks

https://www.politico.com/news/2026/05/13/trump-disappearing-china-hawks-00919051
2•petethomas•36m ago•0 comments

Taking Control of the SQLite WAL

https://philipotoole.com/taking-control-of-the-sqlite-wal/
1•otoolep•37m ago•0 comments

What Is Code?

https://martinfowler.com/articles/what-is-code.html
2•nahimn•41m ago•0 comments

Toyota built a $10B private utopia–what's going on in there?

https://arstechnica.com/cars/2026/05/inside-toyotas-10b-private-utopia-big-ideas-few-people-camer...
1•PaulHoule•43m ago•0 comments

Who Trusts Sam Altman?

https://techcrunch.com/2026/05/13/who-trusts-sam-altman/
31•evo_9•44m ago•20 comments

Fame! A Misunderstanding: A new translation of Albert Camus's complete notebooks

https://lareviewofbooks.org/article/albert-camus-complete-notebooks-ryan-bloom-existentialism-abs...
1•Caiero•44m ago•0 comments

Anthropic carves all non-interactive use out of monthly subscriptions

https://venturebeat.com/technology/anthropic-reinstates-openclaw-and-third-party-agent-usage-on-c...
4•larryrubin•44m ago•1 comments

Use whatever brace style you prefer. But not this. Don't do this

https://twitter.com/akramcodez/status/2054099010571645430
1•stalfosknight•45m ago•0 comments

The Other Half of AI Safety

https://personalaisafety.com/p/the-other-half-of-ai-safety
21•sofiaqt•47m ago•8 comments

Proton's password manager passes audit by top security firm – Proton

https://proton.me/business/blog/proton-pass-audit-2026
4•abdelhousni•48m ago•1 comments