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/

Planetary Boundaries: The safe operating space for humanity

https://www.stockholmresilience.org/research/planetary-boundaries.html
1•bryanrasmussen•35s ago•0 comments

7-Eleven Japan's newest rice balls aren't made entirely of rice

https://soranews24.com/2026/11/28/7-eleven-japans-newest-rice-balls-arent-made-entirely-of-rice/
1•mikhael•2m ago•0 comments

Is WPML Worth It? I Tested It Against an AI Plugin on a WooCommerce Shop [video]

https://www.youtube.com/watch?v=mwNzLRrlWnw
1•leoloso•4m ago•0 comments

ECitizen hackers begin leaking data of 32M Kenyans on dark web

https://nation.africa/kenya/news/ecitizen-hackers-begin-leaking-data-of-32-million-kenyans-on-dar...
2•latein•8m ago•0 comments

Migrate the Reading, Not the Fleet

https://medium.com/@Sounds.Like.LX/migrate-the-reading-not-the-fleet-b2932d8bccf5
1•sounds-like-lx•9m ago•0 comments

Steps for Inventing the Future (2017)

https://www.forbes.com/sites/chunkamui/2017/04/04/7-steps-for-inventing-the-future/
1•e12e•9m ago•1 comments

How WAL mode works in SQLite

https://slicker.me/sqlite/How%20WAL%20mode%20works.html
1•thunderbong•16m ago•0 comments

One Pass to Parse Them All: Fused Parallel CSV Processing

https://al.radbox.org/doi/10.14778/3836663.3836710
3•matt_d•19m ago•0 comments

Show HN: NukeSim – Interactive 3D Nuclear Blast Radius and Fallout Map

https://nuclearsimulator.com/
1•lwj47clip•21m ago•0 comments

Cowork – Self-hosted task queue and orchestration server for AI coding agents

https://github.com/slashman413/cowork
2•slashman413•23m ago•0 comments

Flamingo captures credentials sprayed across networks by IT and security tools

https://github.com/atredispartners/flamingo
1•ishqdehlvi•28m ago•0 comments

5 iPhone Apps Before Xmas

https://ronald.langeveld.blog/5-iphone-apps-before-xmas-challenge
1•ronaldl93•41m ago•0 comments

Ask HN: Has AI started impacting hiring in your org?

1•ChaitanyaSai•43m ago•0 comments

Gemini Subscription Lead deletes Black Friday deals announcement, locks replies

https://twitter.com/vikaskansalHQ/status/2123833450297995624
4•deaux•46m ago•1 comments

S&P cuts France outlook to negative

https://www.ft.com/content/4e16110a-9604-4455-8557-4edece5df01a
2•tosh•49m ago•0 comments

Polars New Streaming Engine and Spill-to-Disk

https://www.confessionsofadataguy.com/polars-new-streaming-engine-and-spill-to-disk/
1•eigenBasis•54m ago•0 comments

So, how fast is numerical computation in Lean?

https://robertboy18.github.io/TorchLean-Verified-Examples/week-09-floatlib-benchmarks/
2•matt_d•55m ago•0 comments

Show HN: unLAB.run – homelab in a tab using unkernel

https://unlab.run
4•gregbell•58m ago•0 comments

PSBoomerang

https://github.com/thepolymatt/psboomerang
1•lucamark•1h ago•0 comments

Why Onions Have More DNA Than You Do

https://news.harvard.edu/gazette/story/2000/02/why-onions-have-more-dna-than-you-do/
1•ex-aws-dude•1h ago•0 comments

India Extends Pakistan Content Ban to First Netflix Series

https://www.bloomberg.com/news/articles/2026-11-27/india-extends-pakistan-content-ban-to-first-ne...
4•ryzvonusef•1h ago•0 comments

Novel Experiments Expand the Hunt for 'Ultralight' Dark Matter

https://www.quantamagazine.org/novel-experiments-expand-the-hunt-for-ultralight-dark-matter-20261...
1•titusblair•1h ago•0 comments

Teams Lock in Mission Architecture for NASA's SR-1 Freedom

https://www.nasa.gov/general/nasa-locks-in-sr1-freedom-mission-architecture/
3•titusblair•1h ago•0 comments

Pentagon Issued Memo Limiting 'Social Activities' with Canadian Military

https://www.nytimes.com/2026/11/21/world/canada/defense-department-canada-military-trump.html
2•cisc•1h ago•0 comments

Zero-egress ~0.04ms 6-layer deterministic firewall for AI agent payouts

2•owais_globoo•1h ago•0 comments

SolidCraft – Open-source parametric CAD built in Rust

https://solidcraft.io/
4•gregsadetsky•1h ago•0 comments

Garage v2.6.0 released with web admin, v1.x EOL and other news

https://garagehq.deuxfleurs.fr/blog/2026-11-webadmin-release/
2•birdculture•1h ago•0 comments

To Think or Not to Think: AI tools and the loss of engineering fundamentals

https://ristonthomas.com/essays/to_think_or_not_to_think/
2•paul_riston•1h ago•0 comments

Lock of George Washington's hair sold at auction for $4k

https://www.cbsnews.com/news/george-washington-lock-of-hair-auction/
1•extasetoi12•1h ago•0 comments

Cory Doctorow: Taylorism and AI's shared sales-pitch

https://pluralistic.net/2026/11/27/taylor-made/
5•catab•1h ago•0 comments