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/

A Chinese Android just ran a half-marathon faster than any human

https://www.cnn.com/2026/04/19/china/china-robot-half-marathon-intl-hnk
2•Bender•3m ago•1 comments

Show HN: Faceoff – A terminal UI for following NHL games

https://www.vincentgregoire.com/faceoff/
2•vcf•4m ago•0 comments

Show HN: A drop-in, open-source replacement for YouTube embed iframes

https://embedlite.com/
1•corentin88•4m ago•0 comments

The Bromine Chokepoint: How Strife Could Halt Production of World’s Memory Chips

https://warontherocks.com/cogs-of-war/the-bromine-chokepoint-how-strife-in-the-middle-east-could-...
1•crescit_eundo•4m ago•0 comments

Air Force Recruits Most New Airmen Since 2004, Making Goal Early

https://www.airandspaceforces.com/active-air-force-hits-recruiting-goal-early-2026/
1•Bender•5m ago•0 comments

Thermometry of simulated Bose–Einstein condensates using machine learning

https://iopscience.iop.org/article/10.1088/2632-2153/ae4f4f
1•opnac•6m ago•0 comments

Sam Altman reportedly targeted in second attack

https://www.theverge.com/ai-artificial-intelligence/910890/openai-sam-altman-second-home-attack-s...
2•GaryBluto•6m ago•0 comments

Make flipbooks from browser sessions, videos and documents

https://flipbook.browserbox.io
1•keepamovin•7m ago•0 comments

Recent advances push Big Tech closer to the Q-Day danger zone

https://arstechnica.com/security/2026/04/while-some-big-tech-players-accelerate-pqc-readiness-oth...
1•Bender•7m ago•0 comments

Show HN: Alodb – I got tired of pasting my Postgres schema into ChatGPT

https://alodb.com
1•eyvzov•9m ago•1 comments

When old HTML5 dreams become reality – field generator in a nutshell

https://rogmash.neocities.org/AuroraCore
1•rogmash•11m ago•2 comments

MCPs are the music of AI Agents. We built the player

https://github.com/vinkius-labs/mcp-explorer
1•renatomarinho•11m ago•0 comments

Why North Koreans Don't Revolt? (and Probably Never Will) [video]

https://www.youtube.com/watch?v=CtgJzLx7y04
1•lisper•12m ago•0 comments

A frictionless, self-hosted e-book sync between Kindle, Android, and KOReader

https://philwornath.com/garden/self-hosted-ebook-sync-koreader
1•ph1lw•12m ago•0 comments

How to Break a Terroristleigh Dickinson University

https://www.youtube.com/watch?v=JaSp20sjc10
1•tukunjil•13m ago•1 comments

Alex Karp is a pathetic toddler

https://www.hamiltonnolan.com/p/grievance-poisoning-in-the-first
2•blackcoffeerain•14m ago•0 comments

Babies Born from Dead Parents Will Increase with New Tech

https://www.404media.co/babies-born-from-dead-parents-will-increase-with-new-tech-are-we-ready/
1•Brajeshwar•15m ago•0 comments

Multi-agent systems: Frameworks and step-by-step tutorial

https://blog.n8n.io/multi-agent-systems/
1•onchainintel•17m ago•0 comments

Dario – local proxy to keep Claude Pro/Max working with any client

https://github.com/askalf/dario
1•askalf•17m ago•1 comments

The Dangers of Reusing Protobuf Definitions: Critical Code Exec in Protobuf.js

https://www.endorlabs.com/learn/the-dangers-of-reusing-protobuf-definitions-critical-code-executi...
1•gnabgib•17m ago•0 comments

The Imperative of Mastering Writing and Coding in the Age of Automation

https://fodysoft.com/blog/learn-coding/
1•osdotsystem•20m ago•1 comments

Software Driven Drive Lights

https://bumblingelectron.blogspot.com/2026/04/creating-drive-lights-on-gpio-linux-only.html
1•mainmeister•21m ago•0 comments

Model Council

https://github.com/bruce249/Model_Council
1•vignesh_146•21m ago•1 comments

SQLite prefixes its temp files with `etilqs_`

https://avi.im/blag/2026/etilqs/
1•birdculture•25m ago•0 comments

Some secret management belongs in your HTTP proxy

https://blog.exe.dev/http-proxy-secrets
2•tosh•29m ago•0 comments

Show HN: Infrawise Azure Cloud Optimization

https://infrawiseai.com
1•pdroid12•29m ago•0 comments

Show HN: Bridge the gap between AI code/app generation and human understanding

https://sourcebridge.ai
1•Craze0•30m ago•0 comments

How do you handle product screenshots at multiple sizes?

https://simplshot.com
2•atlemo•31m ago•1 comments

The Technological Republic, in Brief

https://twitter.com/PalantirTech/status/2045574398573453312
3•d_silin•32m ago•2 comments

Ethics of Artificial Intelligence and Robotics

https://plato.stanford.edu/entries/ethics-ai/
1•keiferski•33m ago•0 comments