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/

I tracked my relationships for 6 years. New friends are negative ROI

https://twitter.com/the2ndfloorguy/status/2023377751374188903
1•LordAtlas•1m ago•0 comments

Big Tech's Claims That AI Can Help Fix the Climate Crisis Are "Greenwashing"

https://www.motherjones.com/environment/2026/02/tech-silicon-valley-ai-claims-help-fix-climate-cr...
1•cdrnsf•1m ago•0 comments

Tesla drops 'Autopilot' branding in California after DMV order

https://www.theregister.com/2026/02/18/tesla_drops_autopilot_marketing/
1•holdit•3m ago•0 comments

100% Autonomous "Agentic" Coding Is a Fool's Errand

https://codemanship.wordpress.com/2026/02/18/100-autonomous-agentic-coding-is-a-fools-errand/
1•flail•4m ago•0 comments

Conway's Arcade

https://specialguestx.com/?s=project&p=conway/
1•redbell•7m ago•0 comments

English as She Is Spoke

https://en.wikipedia.org/wiki/English_as_She_Is_Spoke
1•LorenDB•7m ago•0 comments

HN: Alteam: AI hiring assistant(and more)

https://www.alteam.io/alteam-agent
1•elnglr•7m ago•1 comments

Show HN: Nedagram – Transfer Text Over Sound, when internet isn't available

https://nedagram.com/
1•shayanbahal•8m ago•1 comments

Show HN: SNKV – KV store on SQLite's B-tree with 11x less memory than RocksDB

https://github.com/hash-anu/snkv
1•swaminarayan•8m ago•0 comments

The Sheffield supermarket going viral for the symphonic sound of its freezers

https://www.theguardian.com/music/2026/feb/18/the-sheffield-supermarket-going-viral-for-the-symph...
1•CTOSian•8m ago•0 comments

A NASA Engineer Discovered a World of Semi Truck Aerodynamics by Accident

https://www.thedrive.com/news/how-a-nasa-engineer-discovered-a-world-of-semi-truck-aerodynamics-b...
1•PaulHoule•8m ago•0 comments

Show HN: I got frustrated with macOS transcription apps so I built my own

https://whisnap.com/speech-to-text-mac
1•Neolio•9m ago•0 comments

Building a production SaaS with AI as a non-developer

https://caposport.com/blog/how-i-actually-vibe-code
1•ianstrang•9m ago•1 comments

La Liga wins court order, requiring NordVPN and Proton VPN to block streams

https://www.techradar.com/vpn/vpn-privacy-security/la-liga-wins-court-order-requiring-nordvpn-and...
1•redbell•10m ago•0 comments

Incidental Rotator Cuff Abnormalities on Magnetic Resonance Imaging

https://jamanetwork.com/journals/jamainternalmedicine/fullarticle/2844659
1•bookofjoe•10m ago•0 comments

Show HN: We build EasyCheck to ease compliance and checklists – small businesses

https://easycheck.dk/en
1•MarcusBager•10m ago•0 comments

Anthropic Built a C Compiler [video]

https://www.youtube.com/watch?v=6QryFk4RYaM
1•EPendragon•13m ago•0 comments

VibeNVR – Modern Video Surveillance System with New API Integration

https://github.com/spupuz/VibeNVR
1•spupuz•15m ago•1 comments

Cargo B(inary)Install: Binary installation for rust projects

https://github.com/cargo-bins/cargo-binstall
1•Lwrless•15m ago•0 comments

Open Source and GenAI?

https://www.tbray.org/ongoing/When/202x/2026/02/16/GenAI-and-OSS-opinion
1•moks•16m ago•0 comments

Do androids dream of accepted pull requests?

https://lwn.net/SubscriberLink/1058643/f7ba3383d584a3ea/
1•firexcy•17m ago•0 comments

The SaaSpocalypse Is a Credit Event

https://davefriedman.substack.com/p/the-saaspocalypse-is-a-credit-event
2•wspeirs•22m ago•0 comments

New study unveils the mechanism behind "boomerang" earthquakes

https://news.mit.edu/2026/new-study-unveils-mechanism-behind-boomerang-earthquakes-0218
1•el_duderino•23m ago•0 comments

Show HN: Refine.tools – 10 client-side career tools (Next.js, no DB)

https://www.refine.tools/
2•HarakiriGod•24m ago•1 comments

The Always-On Agent Economy and the Next Cloud Supercycle

https://clouddataandai.substack.com/p/the-always-on-agent-economy-and-the
1•mitul_suthar•26m ago•0 comments

Native Tmux for Windows PowerShell – Psmux

https://github.com/marlocarlo/psmux
2•uniquegodwin•27m ago•1 comments

The Journey to OpenID Federation 1.0 Is Complete

https://self-issued.info/?p=2813
1•xenophonf•27m ago•0 comments

Impact of the "when the fun stops, stop" gambling message on online gambling

https://www.thelancet.com/journals/lanpub/article/PIIS2468-2667(21)00279-6/fulltext
5•bilekas•27m ago•0 comments

Show HN: Brr – beautiful terminal speed tests

https://github.com/allenan/brr
2•andrewallen•27m ago•1 comments

Live Status Tracker for Erdös Problems

https://agibubble.com
1•celltalk•28m ago•0 comments