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

Comments

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

Suspected Russian sonobuoy found by scuba divers off the Pembrokeshire coast

https://www.bbc.com/news/articles/cg5m829mz9mo
1•ljf•3m ago•0 comments

Notes on the WASM Basic C ABI

https://eli.thegreenplace.net/2025/notes-on-the-wasm-basic-c-abi/
1•ingve•6m ago•0 comments

Lands of Wonder, Romance and High Adventure: Part Three (2014)

http://nzpetesmatteshot.blogspot.com/2014/11/lands-of-wonder-romance-high-adventure.html
1•exvi•13m ago•0 comments

Lands of Wonder, Romance and High Adventure: Part Two (2014)

http://nzpetesmatteshot.blogspot.com/2014/10/lands-of-wonder-romance-high-adventure.html
1•exvi•13m ago•0 comments

Microdosed Trainspotting: Buying Painkillers in the UK vs. the US

https://psychotechnology.substack.com/p/microdosed-trainspotting-buying-painkillers
1•eatitraw•13m ago•0 comments

Lands of Wonder, Romance and High Adventure: Part One (2014)

http://nzpetesmatteshot.blogspot.com/2014/08/lands-of-wonder-romance-high-adventure.html
1•exvi•14m ago•0 comments

How We built a millisecond-latency crypto arbitrage system

https://risingwave.com/blog/real-time-crypto-arbitrage-risingwave/
1•WavyPeng•19m ago•0 comments

US demands digital concessions in return for EU steel tariff relief

https://www.politico.eu/article/us-steel-tariff-relief-eu-digital-concessions/
2•ggm•22m ago•0 comments

Viola Ford Fletcher, survivor of 1921 Tulsa Massacre, dies age 111

https://www.aljazeera.com/news/2025/11/25/viola-ford-fletcher-survivor-of-1921-tulsa-massacre-die...
2•defrost•29m ago•1 comments

What you can get for the price of a Netflix subscription

https://nmil.dev/what-you-can-get-for-the-price-of-a-netflix-subscription
3•nmil•32m ago•0 comments

The Airport-Lounge Wars

https://www.newyorker.com/magazine/2025/12/01/the-airport-lounge-wars
2•TMWNN•32m ago•0 comments

Show HN: Sell and Subscribe to Website Ad Slots the Smarter Way to Run Ads

https://adsubly.com/
1•ovelv•32m ago•0 comments

LLMs as Meaning Optimization

https://studium.dev/articles/LLMs-as-Meaning-Optimization
1•jerlendds•34m ago•0 comments

November 2025 Insiders (version 1.107)

https://code.visualstudio.com/updates/v1_107
1•feross•34m ago•0 comments

Our Phosphorescent World

https://aeon.co/essays/the-cycling-of-phosphorus-is-the-basis-for-all-life-on-earth
3•the-mitr•35m ago•0 comments

Most Stable Raspberry Pi? 81% Better NTP with Thermal Management

https://austinsnerdythings.com/2025/11/24/worlds-most-stable-raspberry-pi-81-better-ntp-with-ther...
6•todsacerdoti•35m ago•0 comments

Moats Before (Gross) Margins: Revisited

https://www.a16z.news/p/moats-before-gross-margins-revisited
1•gmays•37m ago•0 comments

Grown-Up Theater Kids Run the World (2023)

https://www.nytimes.com/2023/08/20/style/grown-up-theater-kids.html
1•throwaway81523•40m ago•0 comments

Human brains are preconfigured with instructions for understanding the world

https://news.ucsc.edu/2025/11/sharf-preconfigured-brain/
15•XzetaU8•40m ago•2 comments

Chasing the Algorithm

https://marketoonist.com/2025/11/chasing-the-algorithm.html
1•taubek•41m ago•0 comments

Rust for Linux Kernel Co-Maintainer Formally Steps Down

https://www.phoronix.com/news/Alex-Gaynor-Rust-Maintainer
1•bluebirdfirewin•41m ago•0 comments

Skip Fuse is now free for Indie Developers: SwiftUI via Swift SDK for Android

https://skip.tools/blog/skip-fuse-free-for-indies/
1•wahnfrieden•43m ago•0 comments

Instructions for generating AI porn posted on .gov website

https://bakersfieldnow.com/news/local/nude-ai-deepfake-instructions-posted-on-local-air-quality-d...
2•OhMeadhbh•46m ago•0 comments

The Tune of Things: Is Consciousness God?

https://harpers.org/archive/2025/12/the-tune-of-things-christian-wiman-consciousness-god/
3•Hooke•46m ago•0 comments

Show HN: Lenscraft – Shoot Photos from Google Street

https://d01.dailyaiship.com/
1•bosschow•49m ago•0 comments

NASA and Boeing Scale Back Starliner Missions After Fumbled Astronaut Flight

https://www.wsj.com/science/space-astronomy/nasa-and-boeing-scale-back-starliner-missions-after-f...
3•JumpCrisscross•53m ago•0 comments

Building a WebRTC benchmark for voice AI agents (Pipecat vs. LiveKit)

https://github.com/kstonekuan/voice-rtc-bench
1•kstonekuan•54m ago•1 comments

RL Control of Exercise-Strengthened Biohybrid Robots in Simulation

https://arxiv.org/abs/2408.16069
1•PaulHoule•1h ago•1 comments

Show HN: The Wiki Game - reach target Wikipedia page by clicking hyperlinks only

https://apps.apple.com/us/app/the-wiki-game-wikipedia-game/id6755500017
2•frayo44•1h ago•1 comments

Jakarta Is Now the Biggest City in the World

https://www.axios.com/2025/11/24/jakarta-tokyo-worlds-biggest-city-population
4•skx001•1h ago•0 comments