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•10mo 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•10mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Iron-proxy – An egress firewall for untrusted workloads

https://github.com/ironsh/iron-proxy
1•gslepak•3m ago•0 comments

The Trajectory of the Iran War: Will Jiang Xueqin's Third Prediction Come True?

https://medium.com/@achineseliveinlondon/the-trajectory-of-the-iran-war-will-jiang-xueqins-third-...
1•salkahfi•3m ago•0 comments

OpenAge: Open-Source Biological age foundation models

https://twitter.com/nikhilyadala/status/2039171557667557744
1•nikhilyadala•4m ago•1 comments

Email obfuscation: What works in 2026?

https://spencermortensen.com/articles/email-obfuscation/
1•jaden•4m ago•0 comments

1 Click authentication with new NPM package

https://www.npmjs.com/package/react-google-one-tap-extention
1•Herod55•5m ago•0 comments

FBI Hacked by L33T Chinese H4XX0R

https://www.politico.com/news/2026/04/01/fbi-hack-surveillance-system-major-incident-00854237
1•OhMeadhbh•7m ago•0 comments

Chinese entrepreneur Zhang Xue's homegrown motorbike makes historic win

https://www.globaltimes.cn/page/202603/1357908.shtml
2•icwtyjj•11m ago•1 comments

Americas military is never coming back from this

https://indi.ca/americas-military-is-never-coming-back-from-this/
2•mediumsmart•15m ago•0 comments

Accurate Determination of Chemical Abundances Near a Supermassive Black Hole

https://arxiv.org/abs/2603.29748
1•bewalt•25m ago•0 comments

Steam on Linux Use Skyrocketed Above 5% in March

https://www.phoronix.com/news/Steam-On-Linux-Tops-5p
8•hkmaxpro•27m ago•1 comments

Amine Swingbed: technology for removing CO² from a habitable spacecraft [pdf]

https://www.astronautical.org/sites/default/files/attachment/Amine%20Swingbed%20Payload%20Technol...
1•thunderbong•32m ago•0 comments

An interactive simulation of how Claude Code's context window fills

https://code.claude.com/docs/en/context-window
1•duyet•32m ago•0 comments

Apple turns 50 today: here's what it does better than PC (no foolin')

https://www.pcgamer.com/hardware/apple-turns-50-today-heres-what-it-does-better-than-pc-no-foolin/
1•evo_9•38m ago•0 comments

50 years measuring the cleanest air

https://www.csiro.au/en/news/All/News/2026/April/50-years-measuring-the-worlds-cleanest-air
1•defrost•40m ago•0 comments

The Anti-Intellectualism of the Silicon Valley Elite

https://www.thenation.com/article/society/peter-thiel-marc-andreessen-silicon-valley-anti-intelle...
4•petethomas•42m ago•1 comments

I got the police called on me and almost got kickedout of uni for my gossip site

1•a_n•43m ago•2 comments

Show HN: Create Programs for Recitals

https://bandmanager.projects.jaygoel.com
1•memset•43m ago•0 comments

Show HN: Agent2; Open-source production runtime for AI agents

https://github.com/duozokker/agent2
1•duozokker•44m ago•0 comments

Why Your Database Optimizer Matters More When AI Writes the Queries

https://medium.com/towards-data-engineering/why-your-database-optimizer-matters-more-when-ai-writ...
1•OnTheFlyJOINs•48m ago•0 comments

Show HN: We open-sourced our content writing workflow as a Claude Code skill

https://www.npmjs.com/package/claude-content-writer
1•arximughal•51m ago•0 comments

Why AI Code Needs the Same Rigor We Should've Been Using All Along

https://whetlan.substack.com/p/why-ai-code-needs-the-same-rigor
2•tabwidth•58m ago•2 comments

Startup founder wanted to pitch, but got issues

https://trellis.law/case/26-civ-00518/a16z-capital-management-llc-vs-dulat-akan
1•elonmm•58m ago•0 comments

Please Help Sam Angelo (Wyomingwoodturner)

1•SquibblesRedux•58m ago•1 comments

Show HN: Semantic atlas of 188 constitutions in 3D (30k articles, embeddings)

https://constitutionalmap.ai/en
2•joaoli131•59m ago•0 comments

Show HN: Linux Kernel Documentation Index-Every Page in the Linux Kernel's Docs

https://github.com/tamnd/kernel-index
1•tamnd•1h ago•0 comments

Artemis II's toilet is a moon mission milestone

https://www.scientificamerican.com/article/artemis-iis-toilet-is-a-moon-mission-milestone/
8•1659447091•1h ago•2 comments

Wizards of the Coast Announces the Return of D&D Modules

https://dungeonsanddragonsfan.com/new-dnd-modules/
1•rolph•1h ago•0 comments

NASA's Artemis II Live Views from Orion [video]

https://www.youtube.com/watch?v=6RwfNBtepa4
2•twalichiewicz•1h ago•0 comments

I, OpenClaw, Tackled Visual Studio 2026 and I Had My Human Do the Typing

https://visualstudiomagazine.com/articles/2026/04/01/i-openclaw-tackled-visual-studio-2026-and-i-...
1•shakna•1h ago•0 comments

Refine: AI-Powered Peer Review

https://www.refine.ink/
2•maxutility•1h ago•1 comments