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•9mo ago

Comments

bastawhiz•9mo ago
Is this a problem that people actually have?
xeromal•9mo ago
Fun side project man!
primitivesuave•9mo 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•9mo 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•9mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•9mo 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•9mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Study: Self-generated Agent Skills are useless

https://arxiv.org/abs/2602.12670
1•mustaphah•1m ago•0 comments

ID Token Nicer

https://anddata.substack.com/p/id-token-nicer
1•allusernamesare•2m ago•0 comments

Show HN: Wildex – we built Pokémon Go for real wildlife

https://apps.apple.com/us/app/wildex-identify-plants-animals/id6748092158
3•AnujNayyar•5m ago•0 comments

Show HN: Free Alternative to Wispr Flow, Superwhisper, and Monologue

https://github.com/zachlatta/freeflow
1•zachlatta•6m ago•0 comments

Data 101 for Business Leaders (Operator-Focused, No Mumba-Jumba Jargon)

https://www.datadrip.com/blog/why-were-launching-data-101-and-why-most-companies-misunderstand-data
1•datadripsol•7m ago•1 comments

Nothing bad is going to happen – junkie [video]

https://www.youtube.com/watch?v=_N4z1H6csSs&list=RD_N4z1H6csSs
1•marysminefnuf•7m ago•0 comments

Npx Build-Skill

https://www.npmjs.com/package/build-skill
1•flashbrew•8m ago•1 comments

Show HN: Twsla – A tiny, high-speed log analyzer written in Go

https://github.com/twsnmp/twsla
1•twsnmp•12m ago•2 comments

Obituary for Robert Duvall

https://www.theguardian.com/film/2026/feb/16/robert-duvall-actor-passion-conviction
3•Archelaos•16m ago•0 comments

Has NASA set another prelaunch test after delay? Latest on Artemis

https://www.usatoday.com/story/news/nation/2026/02/16/nasa-artemis-2-rocket-launch/88646242007/
2•bookmtn•17m ago•0 comments

Baby #2, no job, + tradeoffs and prioritizing

https://www.sonyasupposedly.com/baby-2-no-job-tradeoffs-prioritizing/
3•exolymph•19m ago•0 comments

Claude Cowork

https://pvieito.com/2026/01/inside-claude-cowork
3•tin7in•20m ago•0 comments

The One Woman Anthropic Trusts to Teach AI Morals

https://www.wsj.com/tech/ai/anthropic-amanda-askell-philosopher-ai-3c031883
2•jdkee•22m ago•1 comments

Visualize the entropy of a code base with a 3D force-directed graph

3•Piprim•23m ago•0 comments

Show HN: Your binary is no longer safe

https://reorchestrate.com/posts/your-binary-is-no-longer-safe/
2•seddonm1•24m ago•0 comments

Claude 4 Sonnet: Conversation with Kai

https://docs.google.com/document/d/12woq_BpFbzLkH4zHvVRJLPyiZGoDVDxA/edit
2•doener•25m ago•0 comments

Show HN: Provisioner per-board sidecar for serial access, flashing, and bring-up

1•acarminati•25m ago•0 comments

A Pocket Guide to Surviving the Robot Apocalypse

https://corbt.com/posts/a-pocket-guide-to-surviving-the-robot-apocalypse/
1•kcorbitt•27m ago•0 comments

Virtual Width Networks (VWN)

https://arxiv.org/abs/2511.11238
5•tesserato•27m ago•1 comments

Kung Fu Robots Deliver 'Knockout' Performance at Spring Festival Gala [video]

https://www.youtube.com/watch?v=NVX6vq0RSnY
2•zaikunzhang•27m ago•0 comments

Show HN: Scrappy – Open-source browser scraper written in Go

https://github.com/sunergos-ro/scrappy
4•RaulOnRails•27m ago•1 comments

User "Claude" committing vulnerabilities at a rapid rate

https://cyberplace.social/@GossiTheDog/116080909947754833
3•not2b•27m ago•0 comments

Java has evolved. Your code can too

https://javaevolved.github.io
1•pjmlp•28m ago•0 comments

The left is missing out on AI

https://www.transformernews.ai/p/the-left-is-missing-out-on-ai-sanders-doctorow-bender-bores
2•themgt•28m ago•0 comments

UK government may 'age restrict or limit children's VPN use'

https://www.techradar.com/vpn/vpn-privacy-security/uk-government-says-it-may-age-restrict-or-limi...
1•iamnothere•31m ago•0 comments

AI Rot Management

https://jw.hn/ai-code-hygiene
1•jwpapi•35m ago•0 comments

Big tech stocks lose billions as AI spending fears hit valuations

https://www.reuters.com/business/retail-consumer/global-markets-marketcap-2026-02-16/
5•billybuckwheat•36m ago•0 comments

Robert Duvall, a Chameleon of an Actor Onscreen and Onstage, Dies at 95

https://www.nytimes.com/2026/02/16/movies/robert-duvall-dead.html
3•bookofjoe•37m ago•1 comments

Vulkan Easy => Reactor (Like React-App)

https://github.com/AndreeSalazar/REACTOR-Framework-for-Vulkan-
2•QDanteX•37m ago•0 comments

Anthropic got an 11% user boost from its OpenAI-bashing Super Bowl ad

https://www.cnbc.com/2026/02/13/anthropic-open-ai-super-bowl-ads.html
2•general_reveal•37m ago•0 comments