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/

Incident Priority, Severity and Impact

https://jensrantil.github.io/posts/incident-priority-severity-impact/
1•JensRantil•24s ago•0 comments

DNA Platform – A School for Outliers

1•thaianhsoft•1m ago•0 comments

My small SaaS got recommended my Google in the AI search overview

1•kaave•4m ago•0 comments

WhatsApp Encryption, a Lawsuit, and a Lot of Noise

https://blog.cryptographyengineering.com/2026/02/02/whatsapp-encryption-a-lawsuit-and-a-lot-of-no...
1•todsacerdoti•6m ago•0 comments

Musk firms SpaceX and xAI merge to make most valuable private company

https://www.bbc.co.uk/news/articles/cq6vnrye06po
1•sp8•8m ago•0 comments

The Fallen Apple

https://mattgemmell.scot/the-fallen-apple/
1•latexr•8m ago•0 comments

Show HN: ClientDock – a local-first CRM for freelancers and small teams

https://github.com/CraftIndie/clientdock-releases
1•agispace•9m ago•0 comments

Show HN: Browse Bot, a page-aware AI browser assistant

https://github.com/Protos-Galaxias/Browse-Bot
1•ProtosGalaxias•10m ago•0 comments

Molthub – Where Agents Come to Compute

https://moithub.com/
1•prakashqwerty•10m ago•0 comments

OpenAI's In-House Data Agent

https://openai.com/index/inside-our-in-house-data-agent/?
1•tamnd•11m ago•0 comments

Show HN: MoltCurator– Newsletter curating content from Moltbook's 1.4M AI agents

https://www.moltcurator.com/
1•jitendraarathi•11m ago•0 comments

Claude Sonnet 5 Is Imminent – and It Could Be a Generation Ahead of Google

https://ucstrategies.com/news/claude-sonnet-5-is-imminent-and-it-could-be-a-generation-ahead-of-g...
3•nsoonhui•13m ago•1 comments

Orville Nix film about the JFK assassination

https://www.jfk.org/collections-archive/nix-home-movie-2/
1•simonebrunozzi•16m ago•0 comments

Boring Go – A practical guide to writing boring, maintainable Go

https://golang.college/books/boring-go
4•dariubs•17m ago•2 comments

Bivi: Club Penguin for Language Learning

1•ensoyut•18m ago•0 comments

Chinese scientists achieve breakthrough in quantum computing with 'Zhuangzi 2.0'

https://global.chinadaily.com.cn/a/202601/30/WS697c8515a310d6866eb36aaf.html
2•maxloh•18m ago•0 comments

Show HN: Safe-now.live – Ultra-light emergency info site (<10KB)

https://safe-now.live
2•tinuviel•23m ago•0 comments

Inbreeding by Country 2026

https://worldpopulationreview.com/country-rankings/inbreeding-by-country
2•KoftaBob•25m ago•0 comments

Where the Wild Bots Are

https://spyglass.org/ai-social-networks/
1•simonebrunozzi•25m ago•0 comments

Women Are More Likely Than Men to Endorse Political Violence

https://www.city-journal.org/article/women-political-violence-digital-online
1•MrBuddyCasino•26m ago•0 comments

Does AI have human-level intelligence? The evidence is clear

https://www.nature.com/articles/d41586-026-00285-6
1•Anon84•29m ago•0 comments

Skill-progress: Show off your skill levels with a progress bar in GitHub README

https://github.com/slimnate/skill-progress
1•slimnate•29m ago•0 comments

Show HN: Find viral video ideas on YouTube

https://viraloutlier.com
1•jklepatch•29m ago•0 comments

Planetary Roller Screws

https://www.humanityslastmachine.com/#planetary-roller-screws
1•everlier•30m ago•0 comments

Claude Sonnet 5 drops next week

https://twitter.com/ridvancan/status/2018132792110968916
2•bkolobara•33m ago•1 comments

Cryptic carnivores: why feline hair makes cats (Felis catus) look vegan

https://www.frontiersin.org/news/2026/02/03/cats-isotopic-fingerprint-fur-vegan
1•XzetaU8•36m ago•0 comments

NeXTWorld Interviews Bud Tribble (1994)

https://computeradsfromthepast.substack.com/p/nextworld-interviews-bud-tribble
1•rbanffy•39m ago•0 comments

Unseen Footage of Atari Battlezone Arcade Cabinet Production

https://arcadeblogger.com/2026/02/02/unseen-footage-of-atari-battlezone-cabinet-production/
2•videotopia•40m ago•0 comments

Queue monitoring that catches issues early – Queuedash

https://www.queuedash.com
1•tilt•42m ago•0 comments

OmniPas, a new Windows Pascal cross-compiler for targeting 6502/Z80 machines

https://syntaxerrorsoftware.itch.io/omnipas
2•pjmlp•42m ago•1 comments