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/

My 11-year-old font bug

https://hackers.pub/@yurume/019f34c6-8950-78f6-81fc-c1cadd648d74
1•lifthrasiir•1m ago•0 comments

Diary of a CEO Is Making You Less Successful [video]

https://www.youtube.com/watch?v=CbDQs_TcyN4
1•kklisura•2m ago•0 comments

Len Sassaman Forensic Dead Ends at Black Hat – USA – 2002 [video]

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

The Sutra of the Open Door

https://pastebin.com/SbJ1W47Z
2•Muromec•10m ago•0 comments

Al Vigier: Canada's AI strategy shouldn't include secret Palantir bills

https://www.readtheline.ca/p/al-vigier-canadas-ai-strategy-shouldnt
7•ClearwayLaw•14m ago•2 comments

The Voice Agent Builder

https://x.ai/news/grok-voice-agent-builder
2•frankacter•16m ago•0 comments

Show HN: AI-related Jax module (I hate if)

https://github.com/PJHkorea/egregore-core-jax
2•PJHkorea•17m ago•2 comments

Strange Balls found on Queensland beaches could be toxic 'space debris': experts

https://www.inkl.com/news/strange-balls-found-on-queensland-beaches-could-be-toxic-space-debris-e...
2•ivewonyoung•20m ago•0 comments

Egg companies made $1.22B in profit off $6 carton

https://fortune.com/2026/07/02/egg-price-fixing-crisis-cover-cash-and-eggs/
6•gscott•21m ago•0 comments

We're All Managers Now: My Journey into AI-Assisted Development

https://mattmccormick.ca/we-re-all-managers-now-my-journey-into-ai-assisted-development/
3•mattm•22m ago•0 comments

Building Agents That Don't Break Themselves

https://fly.io/blog/building-agents-that-dont-break-themselves/
2•ryantsuji•24m ago•0 comments

Engineering Micro-Submarines to Replace Fish

https://hackaday.com/2026/07/01/engineering-micro-submarines-to-replace-fish/
4•croes•26m ago•0 comments

The Private Capture of Public Genius

https://www.wysr.xyz/p/the-private-capture-of-public-genius
3•martialg•26m ago•0 comments

First Full-Scale, 3D-Printed Reactor Module Produced

https://www.tomshardware.com/3d-printing/startup-unveils-3d-printed-nuclear-reactor-module-to-pow...
3•Meerax•28m ago•0 comments

Has_not_been_viewed_much

https://iamwillwang.com/notes/has-not-been-viewed-much/
6•wxw•30m ago•0 comments

Show HN: AI integrated in any terminal that's invisible until you need it

https://terminai.app
3•emosenkis•32m ago•0 comments

Newport: Submarket GPU allocations for venture-backed startups

https://newport.ai
2•kxter•32m ago•0 comments

Show HN: Three small browser primitives – identity, handoff, durable local

https://oss.sarwagya.wtf
2•0xsarwagya•34m ago•0 comments

US Navy is flight-testing 3D-printed fighter jet parts

https://www.tomshardware.com/3d-printing/us-navy-testing-3d-printed-fighter-jet-parts-for-quick-r...
3•logickkk1•35m ago•0 comments

Reactive – Markdown to interactive web apps, running in-browser

https://reactivenet.ai/
2•clmanes•37m ago•0 comments

Show HN: Peek-CLI: Let Claude Code See the Browser

https://github.com/puffinsoft/peek-cli
4•ReactRocks•40m ago•0 comments

Vitruvius' de Architectura

https://libguides.colorado.edu/c.php?g=1084056&p=7902486
2•andsoitis•42m ago•0 comments

Ask HN: How are you staying productive using LLMs?

3•thallavajhula•42m ago•0 comments

What J. D. Vance Once Knew

https://www.theatlantic.com/ideas/2026/07/jd-vance-trump-independence-day/687779/
2•andsoitis•46m ago•0 comments

Connections in Math: the two kinds of random

https://stillthinking.net/posts/connections-in-math-two-kinds-of-random/
8•pcael•47m ago•5 comments

Is it true about the Terms of Service of AI's?

3•DivingForGold•55m ago•2 comments

Teologia Sistemática Pentecostal

https://blog.cloudflare.com/making-ai-search-smarter/
2•abinadabe•58m ago•0 comments

Fines doubled as teens outsmart Australia's world-first social media ban

https://www.euronews.com/next/2026/06/29/fines-doubled-as-teens-outsmart-australias-world-first-s...
12•billybuckwheat•1h ago•3 comments

Sometimes free isn't cheap enough

https://12gramsofcarbon.com/p/agentics-sometimes-free-isnt-cheap
3•theahura•1h ago•0 comments

Great Filter

https://en.wikipedia.org/wiki/Great_Filter
4•chistev•1h ago•0 comments