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/

The Three AI Pills

https://thezvi.substack.com/p/the-three-ai-pills
2•stuartmemo•3m ago•0 comments

Planes With Same Call Sign at PHX – one departing, one arriving

https://www.nytimes.com/2026/08/15/us/american-airlines-call-signs-phoenix.html
1•jsrozner•4m ago•1 comments

The Mysterious Art of Conducting

https://www.theatlantic.com/magazine/2026/09/orchestra-conductor-profession/687962/
2•anarbadalov•5m ago•0 comments

Which monotheistic religions preceded Yahweh's religion?

https://ciron.medium.com/which-monotheistic-religions-preceded-that-of-yahweh-3218c780553f
1•raynchad•5m ago•1 comments

Tupoi: An attention-free LLM with strictly O(1) memory and 6 KB state

https://github.com/narelabs/TUPOI
1•IntellegenceIsP•6m ago•0 comments

Four Levels of In-Place Initialization (Rust)

https://blog.yoshuawuyts.com/four-levels-of-in-place-initialization/
1•dabinat•7m ago•0 comments

Alibaba AI Models Hit 3B Downloads, Passing Meta, Google

https://www.bloomberg.com/news/articles/2026-08-15/alibaba-ai-models-hit-3-billion-downloads-pass...
3•pluc•12m ago•1 comments

AI Isn't Outthinking Mathematicians. It's Out-Remembering Them

https://davidepiffer.com/p/ai-isnt-outthinking-mathematicians
29•rzk•14m ago•11 comments

React for Agents: Astro Creator Brings Hooks to Flue

https://www.latent.space/p/flue-2
1•flyaway123•16m ago•0 comments

Thunderbird's Desktop Calendar Visual Redesign

https://blog.thunderbird.net/2026/08/desktop-calendar-a-design-journey/
3•birdculture•18m ago•0 comments

AI detectors are creating a new era of distrust

https://www.theverge.com/column/976690/ai-writing-detectors-suspicion
2•saikatsg•20m ago•0 comments

Peer-reviewed study of 443,000 Backblaze drives ranks HGST most reliable

https://www.tomshardware.com/pc-components/hdds/peer-reviewed-study-of-443000-backblaze-drivers-r...
4•sbulaev•20m ago•1 comments

Fossilisation processes and our reading of animal antiquity

https://www.cell.com/trends/ecology-evolution/fulltext/S0169-5347(23)00137-4
2•joebig•21m ago•0 comments

Whiteboard lesson walking through postgres architecture basics. Part 1 [video]

https://www.youtube.com/watch?v=q9jixKv4h2I
2•adletbalzhanov•23m ago•2 comments

Notes on building products people love when software gets cheap

https://twitter.com/hnshah/status/2088663964116983856
2•tosh•25m ago•0 comments

Show HN: Jovethra – prepaid OpenAI-compatible API with hard usage limits

https://jovethra.xyz/playground
1•Belius•25m ago•0 comments

YouTube Dumps Cache Between Ads, Quality Toggling and Wastes Cellular Bandwidth

https://inavoyage.blogspot.com/2026/08/youtube-dumps-cache-between-ads-quality.html
1•initramfs•27m ago•1 comments

Ask HN: What non-technical skill boosted your engineering career the most?

1•pranav_tech26•29m ago•5 comments

Coming Soon to Shattered: The Vault Quest

https://shatteredpixel.com/blog/coming-soon-to-shattered-the-vault-quest.html
1•robin_reala•29m ago•0 comments

BriskDB

https://github.com/schapman1974/briskdb
2•schapman1974•30m ago•1 comments

I write the notifications that interrupt you. It did not make me immune

https://medium.com/@mike.salari.dev/i-write-the-notifications-that-interrupt-you-it-did-not-make-...
2•salari_dev•31m ago•0 comments

Steer on a Sphere: Geometric Control of Transformer Outputs

https://github.com/ntrillard/transformer-geometry
1•ntrillard•31m ago•0 comments

Oman says oil spill reaches coastline

https://www.aljazeera.com/news/2026/8/13/oman-says-massive-oil-spill-reaches-coastline-what-damag...
2•tosh•31m ago•0 comments

Google joins the OpenROAD Initiative as principal member

https://opensource.googleblog.com/2026/08/%20google-joins-the-openroad-initiative-as-principal-me...
2•rbanffy•35m ago•0 comments

Infrastructure for Messaging and Agents

https://www.zavu.dev/en
1•viktordev•38m ago•0 comments

Her childhood photo. Thousands of explicit images. One woman's nightmare.

https://www.washingtonpost.com/technology/2026/08/15/woman-alleges-grok-made-thousands-sexual-abu...
1•spenvo•38m ago•1 comments

Opus 5 on Vending-Bench: Once Again the Best Capitalist, Once Again Misaligned

https://andonlabs.com/blog/opus-5-vending-bench
2•tillulen•40m ago•0 comments

Futuristic mosquito-zapping laser now available to buy

https://www.tomshardware.com/peripherals/futuristic-mosquito-zapping-laser-now-available-to-buy-v...
2•01-_-•41m ago•0 comments

Why Smart People Still Fall for Online Scams (It's Not About Intelligence)

https://comuniq.xyz/post?t=1557
1•01-_-•43m ago•0 comments

An association between tick bite reactions and red meat allergy in humans (2009)

https://www.researchgate.net/publication/24399898_An_association_between_tick_bite_reactions_and_...
1•dgellow•43m ago•0 comments