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/

Agents Aren't Coworkers, Embed Them in Your Software

https://www.feldera.com/blog/ai-agents-arent-coworkers-embed-them-in-your-software
2•gz09•3m ago•0 comments

Aprendendo Inglês Com IA

https://fluencycraft.com/
2•carloscsc•3m ago•2 comments

Bees Change Color with the Weather

https://nautil.us/these-bees-change-color-with-the-weather-1280222
2•Brajeshwar•4m ago•0 comments

How Copenhagen built a metro for free (The Flying Moose) [video]

https://www.youtube.com/watch?v=GzamwVH3CXU
2•zeristor•5m ago•1 comments

Show HN: I built a PyPI watchdog that tests whether packages work

https://sovereignmail.org/pypiplace
1•contentist•5m ago•0 comments

IronBCI-32: 32-Channel 24-Bit EEG for BCI Research

https://hackaday.io/project/205585-ironbci-32-32-channel-24-bit-eeg-for-bci-research
2•Christiangmer•6m ago•0 comments

Microfiche, Microfilm and Other Minutiae (1981) [video]

https://www.youtube.com/watch?v=Q6P9FhSkd0I
1•susam•6m ago•0 comments

The most successful health campaign in modern history

https://www.msn.com/en-us/health/other/the-most-successful-health-campaign-in-modern-history/ar-A...
1•RickJWagner•7m ago•0 comments

DeepSeek-V4 on Day 0: From Fast Inference to Verified RL with SGLang and Miles

https://www.lmsys.org/blog/2026-04-25-deepseek-v4/
1•mji•13m ago•0 comments

Understanding the short circuit in solid-state batteries

https://www.mpie.de/5151287/short-circuit-solid-state-batteries
1•hhs•13m ago•0 comments

Uranus's Outermost Rings Are Made of Two Different Things

https://skyandtelescope.org/astronomy-news/uranuss-outermost-rings-are-made-of-two-different-things/
1•mooreds•14m ago•0 comments

Boulder's water supply hangs on for now amid historic drought conditions

https://boulderreportinglab.org/2026/04/23/boulders-water-supply-hangs-on-for-now-amid-historic-d...
1•mooreds•15m ago•0 comments

Once a Year, Seattle Center Becomes a Medical Clinic

https://www.thestranger.com/news/once-a-year-seattle-center-becomes-a-medical-center/
1•mooreds•16m ago•0 comments

Your Name in Landsat

https://science.nasa.gov/specials/your-name-in-landsat/
1•susam•18m ago•0 comments

Her Life Savings Mysteriously Disappeared After a Systems Glitch

https://www.nytimes.com/2026/04/25/your-money/fidelity-investments-fraud-alert.html
4•danso•24m ago•1 comments

Steak 'n Shake: We're going 'back to the glory days of fast food'

https://thehill.com/business/5848987-steak-n-shake-healthy-ingredients/
2•tolerance•25m ago•2 comments

Show HN: Rethinking browser tabs to treat too many tabs open

https://github.com/moogacs/tabby
1•moogas•26m ago•0 comments

Marc Andreessen on how the internet changed news, politics, and outrage [video]

https://www.youtube.com/watch?v=82HsvG1_Nqk
1•hhs•27m ago•0 comments

I reverse-engineered Claude Desktop's storage to give it memory

https://github.com/Foued-pro/Mnemos
2•foufouadi•28m ago•0 comments

An interesting OpenAI Codex Q&A

1•paulbernard•29m ago•0 comments

Show HN: Ruosh,full-text search library in Python backed by Tantivy

1•bisgh•30m ago•1 comments

Interactive browser-based web archiving from Webrecorder

https://archiveweb.page/
1•doener•36m ago•0 comments

EFF Challenges Secrecy in Eastern District of Texas Patent Case

https://www.eff.org/deeplinks/2026/04/eff-challenges-secrecy-eastern-district-texas-patent-case
2•Brajeshwar•54m ago•0 comments

Pi in the Sky (2016)

http://www.piinthesky.co/
1•radeeyate•54m ago•0 comments

Simulating and Evaluating Agentic Systems

https://www.gojiberries.io/simulating-and-evaluating-agentic-systems/
1•neehao•56m ago•0 comments

I Went to Jail

https://lincolnquirk.substack.com/p/i-went-to-jail
3•Cider9986•57m ago•0 comments

Why would ChatGPT "confess" to a crime it didn't commit?

https://radleybalko.substack.com/p/why-would-chatgpt-confess-to-a-crime
1•xKingfisher•58m ago•0 comments

Just How Much Should You Worry About Eating That Burnt Toast?

https://www.mcgill.ca/oss/article/medical-critical-thinking-health-and-nutrition/just-how-much-sh...
1•amichail•59m ago•0 comments

How Opus Came To Be (2019)

https://jmvalin.dreamwidth.org/16616.html
2•1317•59m ago•0 comments

"That's how floating point errors and triangle numbers solved a mystery."

https://unsung.aresluna.org/thats-how-floating-point-errors-and-triangle-numbers-solved-a-mystery/
2•rbanffy•1h ago•0 comments