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/

How you use AI AS HELPER?

1•anitroves•2m ago•0 comments

LLM Wiki Maintenance: Drift, Contradictions and Review

https://www.glukhov.org/knowledge-management/knowledge-systems-architectures/compiled-knowledge/l...
1•navigate8310•2m ago•0 comments

Lake Natron

https://en.wikipedia.org/wiki/Lake_Natron
1•toomuchtodo•2m ago•0 comments

WhaleTrack I track the biggest Polymarket bettors and grade them by consistency

https://whaletrack.app
1•whaletrack•3m ago•0 comments

The Brick Game, Through the Ages

https://nicole.express/2026/bricked-up-and-no-amontillado.html
1•zdw•4m ago•0 comments

Apple Is the King of AI and Nobody Knows It

https://limitededitionjonathan.substack.com/p/apple-is-the-king-of-ai-and-nobody
1•jinjin2•8m ago•0 comments

Autonomous AI Intrusions Are Here: Lessons from the Hugging Face Compromise

https://embracethered.com/blog/posts/2026/ai-intrusion-are-now-real/
1•Khaine•12m ago•0 comments

Reverse Compilation techniques – Cristina Cifuentes(1994) [pdf]

https://www.cs.tufts.edu/~nr/cs257/archive/cristina-cifuentes/DCC_decompilation_thesis.pdf
1•num42•12m ago•0 comments

Neural Drive, a SuperTuxKart World Model that runs in the browser

https://huggingface.co/codelion/neural-drive-model
1•codelion•15m ago•0 comments

How the Best Hackers Learn Their Craft(2018)

https://www.youtube.com/watch?v=6vj96QetfTg
1•num42•15m ago•0 comments

The Cost and Network Limits of Space-Based AI Compute

https://arxiv.org/abs/2607.14172
1•Jimmc414•18m ago•0 comments

Don't Predict, Prioritize: Rethinking GPU Reliability Assessment

https://arxiv.org/abs/2607.15115
1•Jimmc414•19m ago•0 comments

Getting nerd sniped by the h-index

https://davidxyu.substack.com/p/being-nerd-sniped-by-the-h-index
1•4thwaywastrel•30m ago•0 comments

Show HN: Visual DSA

https://pqdsa.com/
1•_dragonguy•30m ago•0 comments

Ask HN: Which blog have you recently found to be your favorite?

1•vinhnx•31m ago•0 comments

Before and After October 7, 2023

https://medium.com/freedomofthought/before-and-after-october-7-2023-a2e604ff5b37
2•raynchad•32m ago•0 comments

Show HN: R3 – Review locally and send structured feedback to your coding agent

https://github.com/hyperlogue/r3
1•rickye26•38m ago•1 comments

LSU physicists create first room-temperature quantum material

https://www.lsu.edu/science/news/2026/07/rt-quantum-material.php
3•thunderbong•41m ago•0 comments

The Accidental Discovery of Phencyclidine [video]

https://www.youtube.com/watch?v=DGvnAqk5iAg
1•binyu•42m ago•0 comments

Smart People in AI Published a Plan a They Expect to Be Ignored

https://writing.sidharthkakkar.com/p/very-smart-people-in-ai-published
1•sikakkar•42m ago•1 comments

Claude Fable produced a counterexample to the Jacobian Conjecture

https://xcancel.com/__alpoge__/status/2079028340955197566
8•loubbrad•45m ago•2 comments

Tech Workers Face Evaporating Financial Security as AI Transforms Industry

https://www.adn.com/nation-world/2026/07/19/the-biggest-winners-of-the-american-economy-fear-they...
2•nlpnerd•51m ago•0 comments

Graphjin

https://graphjin.com/
2•handfuloflight•51m ago•0 comments

India's first privately-developed rocket reaches orbit on dramatic debut launch

https://arstechnica.com/space/2026/07/indias-first-privately-developed-rocket-reaches-orbit-on-dr...
3•sohkamyung•52m ago•1 comments

The 2000s called. They want their digital camera back

https://www.npr.org/2026/07/18/nx-s1-5896117/retro-digital-camera-analog-reboot
5•megamike•55m ago•5 comments

./Alien_worker.sh

https://github.com/maxitg/alien-worker
1•p135246•57m ago•1 comments

Salt: Salience-Aware Lexical Trie for Long-Context Compression

https://github.com/oteomamo/SALT
1•omamo•1h ago•0 comments

Big Tech Is Now Targeting Native American Land for Data Centers

https://www.nytimes.com/2026/07/09/us/data-centers-native-american-tribes.html
5•reaperducer•1h ago•0 comments

Copyright Is Not Enough

https://www.thedial.world/articles/news/copyright-law-ai-intellectual-property
1•colinprince•1h ago•0 comments

See inside insects with an electron microscope and a femtosecond laser [video]

https://www.youtube.com/watch?v=NwhVJ7cv9B4
3•pillars•1h ago•0 comments