frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

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

Taphonomic analysis reveals behavioral & tech capabilities of Homo floresiensis

https://www.science.org/doi/10.1126/sciadv.aeb7219
1•bushwart•1m ago•0 comments

Show HN: Goldseam – heal broken Cypress selectors with a local LLM

https://github.com/adam-s/goldseam
1•dataviz1000•1m ago•0 comments

WSL Keeps Getting Better

https://www.xda-developers.com/wsl-keeps-getting-better-and-its-because-microsoft-is-finally-admi...
1•porridgeraisin•2m ago•1 comments

Show HN: Detecting AI slop with regex and Stephen King

https://github.com/guy-lifshitz/tacheles
1•shtofadhor•2m ago•0 comments

Why High-Earning Families Are Leaving Traditional Schools for AI

https://allk12.com/blog/why-high-earning-families-are-leaving-traditional-schools-for-ai
1•misterinfo•3m ago•0 comments

How Bending Spoons built a $23B tech empire from struggling brands

https://www.ft.com/content/040aac86-f458-400b-a353-7ff2ee5aa34f
1•chuckus•3m ago•1 comments

Dead Man's Switch and USB Kill Switch for Linux, Security Project

https://github.com/qxnode/luks-deadman
1•qxnode•5m ago•0 comments

Neoengineers

https://elijahpotter.dev/articles/neoengineers
1•chilipepperhott•7m ago•0 comments

Show HN: EdgeRunner – run GGUF models with Swift and Metal

https://github.com/christopherkarani/EdgeRunner
1•karc14•7m ago•0 comments

Plastic Free July Is Nonsense

https://bekopcho.substack.com/p/plastic-free-july-is-nonsense
1•clemesha•8m ago•0 comments

Handoff – a verified context bridge between Claude Code sessions

https://github.com/ostikwhy-blip/claude-code-handoff-skill
1•ostik•10m ago•0 comments

The Verification Horizon: No Silver Bullet for Coding Agent Rewards

https://arxiv.org/abs/2606.26300
1•matt_d•11m ago•0 comments

Nutrition Science's Most Preposterous Result

https://www.theatlantic.com/magazine/archive/2023/05/ice-cream-bad-for-you-health-study/673487/
1•paulpauper•11m ago•0 comments

Falling fertility on the left as key driver of US birth decline

https://www.nature.com/articles/s41598-026-57582-3
1•paulpauper•12m ago•0 comments

Is America Moving Left Economically?

https://hereticalinsights.substack.com/p/is-america-moving-left-economically
1•paulpauper•13m ago•1 comments

Show HN: I hated how much my 12-year-old played Roblox, so we built our own FPS

https://cooked.house
2•davitb•14m ago•0 comments

Orchestra Locks Horns with Copyright Cops over Works by Long-Dead Composers

https://www.wsj.com/arts-culture/music/orchestra-locks-horns-with-copyright-cops-over-works-by-lo...
2•impish9208•15m ago•1 comments

Combustion Engine Web-Based Simulator

https://combustionlab.net
1•mytuny•17m ago•0 comments

"These cameras are just like the Eye of Sauron"

https://arxiv.org/abs/2602.09239
2•dijksterhuis•22m ago•0 comments

Mark Zuckerberg tells staff that AI agents haven't progressed enough

https://techcrunch.com/2026/07/02/mark-zuckerberg-tells-staff-that-ai-agents-havent-progressed-as...
8•msolujic•23m ago•4 comments

Rust Service Isn't Leaking – It Could Be the Allocator

https://pranitha.dev/posts/rust-and-memory-allocators/
4•abhirag•23m ago•0 comments

From Socrates to Expert Systems

https://lafavephilosophy.x10host.com/dreyfus.html
1•cratermoon•25m ago•0 comments

ABI vs. API (2004)

https://lists.debian.org/debian-user/2004/02/msg00648.html
1•signa11•25m ago•0 comments

Zero-defects code: the prescient Microsoft memo from 1989

https://digitalseams.com/blog/zero-defects-code-the-prescient-microsoft-memo-from-1989
3•bobbiechen•26m ago•0 comments

Probing the loss-band sparsity assumption in Scientist AI

https://www.lesswrong.com/posts/zJGGZQdtfoNye5ywe/probing-the-loss-band-sparsity-assumption-in-sc...
1•joozio•26m ago•0 comments

The Expert as Tourist

https://lareviewofbooks.org/article/this-land-is-your-land-beverly-gage-history/
1•samclemens•26m ago•0 comments

Sometimes never compete on price (2025)

https://longform.asmartbear.com/never-compete-on-price/
2•mooreds•29m ago•0 comments

DNA Break Repair by Homologous Recombination [video]

https://www.wehi.edu.au/wehi-tv/dna-break-repair-by-homologous-recombination/
2•jwgarber•30m ago•0 comments

Freud's Mind Model Within a Predictive Processing Neuroscientific Paradigm

https://www.mdpi.com/1099-4300/28/3/318
2•bookofjoe•32m ago•0 comments

Domain experts: All human experts into AI agents

https://github.com/wonsukchoi/domain-experts
2•wonsukchoi97•33m ago•3 comments