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/

Only 1/8 turbines in Hungarian Paks NPP still operational, shutdown imminent

https://index.hu/gazdasag/2026/08/03/paksi-atomeromu-leallas-kormany-atomenergia-energia-veszelyh...
1•Markoff•3m ago•1 comments

Go json/v2

https://pkg.go.dev/encoding/json/v2
1•tosh•6m ago•0 comments

Dijkstra: The End of Computing Science (2000) [pdf]

https://www.cs.utexas.edu/~EWD/ewd13xx/EWD1304.PDF
1•emptybits•15m ago•0 comments

Show HN: Open-sourcing my market mental map

https://research.oguzbilgic.com
1•obilgic•18m ago•1 comments

lexicon of computing (2001)

https://web.archive.org/web/20011128152100/http://www.cs.washington.edu/homes/klee/misc/lexicon.html
1•jruohonen•22m ago•0 comments

Netflix sued for $105M after unreleased Nicolas Cage movie is stolen

https://www.nbcnews.com/pop-culture/pop-culture-news/netflix-sued-105-million-unreleased-nicolas-...
2•xvxvx•30m ago•3 comments

Show HN: Kwayk – Reimplementing Quake in Qt Quick3D with Jolt Physics

https://github.com/glazunov999/Kwayk
1•glazunov999•32m ago•0 comments

How Go Players Disempower Themselves to AI

https://www.lesswrong.com/posts/nR3DkyivzF4ve97oM/how-go-players-disempower-themselves-to-ai
2•zetalyrae•32m ago•0 comments

How Cursor sets up their cloud agent environment

https://cursor.com/blog/cloud-agent-environment
1•inferhaven•34m ago•0 comments

Spain to put containment fence round Ceuta after deadly border rush from Morocco

https://www.cbsnews.com/news/spain-ceuta-morocco-migrants-border-crossings/
2•SilentM68•39m ago•1 comments

Email compromise that wiped half a billion $

https://ravenmail.io/blog/bank-of-baroda-leak
5•abishekr•42m ago•0 comments

Show HN: N3MO better ROI than CodeRabbit

https://www.n3mo.shop/
1•RajX_dev•42m ago•0 comments

Servitor (Simple way to run local dev containers)

https://github.com/sndsabin/servitor
2•havu12•48m ago•0 comments

Show HN: New Parts for Old Computers

https://newold.computer/
1•joshu•49m ago•0 comments

AI Mentions in Job Descriptions – August 2026

https://corvi.careers/blog/ai_jobs_aug_2026/
2•sp1982•53m ago•0 comments

Pulverised recycled glass helps boost farm productivity with benefits to soil

https://www.abc.net.au/news/2026-07-31/ground-glass-silicon-fertiliser-farm-productivity/106963488
3•Tomte•57m ago•1 comments

An AI meeting recorder that sees and hears everything

https://github.com/puremetricsai/lumi
2•puremetrics•58m ago•4 comments

Show HN: Drop your site, get design feedback based on similar sites

https://design.withfudge.com/website-feedback
1•sim04ful•1h ago•0 comments

DDisasm: Reversible (bi-directional) Disassembler

https://github.com/GrammaTech/ddisasm
1•aboardRat4•1h ago•1 comments

Show HN: An AI-Powered Widget for Collecting User Feedback

https://makethisbetter.dev/
2•paicha•1h ago•1 comments

Show HN: An AI wrote and illustrated a book of fables about threads and packets

https://booyaka101.github.io/thedailyfable/day07/
4•Booyaka101•1h ago•0 comments

Lerobit MMP V1: Transforming AI Marketing-Coming Soon

https://www.lerobit.com/coming-soon
1•akliluart•1h ago•0 comments

Mob – A personal CRM as an MCP server

https://mobcrm.au/
1•benkaiser•1h ago•1 comments

I Built Peko to Fix Native App Deployment

https://app.pekoui.com/blog/why-i-built-peko
1•IAmPrestonBrown•1h ago•0 comments

Show HN: An update to the random OS (windogeOS)

https://github.com/NoTheIdiot/WindogeOS
1•notheidiot•1h ago•0 comments

Show HN: Do Codex skills save tokens? A six-run task-size benchmark

https://codex-howto-benchmark.nguyenvantamdk2.chatgpt.site
2•phelannguyen164•1h ago•0 comments

China, Open Source and AI Competitiveness with Andrew Ng

https://www.youtube.com/watch?v=2OUGXI9Y1sk
1•rasengan0•1h ago•0 comments

Show HN: swsql – A PostgreSQL client for the terminal, written in Swift

https://github.com/vdsingh/swsql
1•vikdevmail•1h ago•0 comments

Show HN: Browse all 147k Emoji Kitchen combos in the browser

https://emojimaker.cc/emoji-kitchen/
1•zz5759•1h ago•0 comments

Show HN: MovePlaybook – A local-first moving checklist with printable plans

https://moveplaybook.app/
1•lionchain•1h ago•0 comments