frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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•11mo ago

Comments

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

Creative as a Service for Growing Brands

https://bespire.com
1•paulsiccha•30s ago•0 comments

nanomem: An Simple, Inference-Time Memory Module

https://openanonymity.ai/blog/nanomem/
1•matt_d•44s ago•0 comments

Build, Sell and Grow Your Online Academy – Skillramp

https://skillramp.com/
1•paulsiccha•1m ago•0 comments

Startupdirectory.io – Discover Innovative Startups

https://startupdirectory.io
1•paulsiccha•2m ago•0 comments

The "SpaceX Mafia": Fostering Innovation Across Industries(2023)

https://www.spacetalent.org/resources/spacex-mafia-fostering-innovation
1•num42•2m ago•0 comments

Building an Unverified Compiler with Agents

https://www.basis.ai/blog/verified-compiler/
1•matt_d•12m ago•0 comments

Dictating Literal Reminders to My Apple Watch

https://mjtsai.com/blog/2026/04/15/dictating-literal-reminders-to-my-apple-watch/
1•alin23•12m ago•0 comments

Show HN: Amazon Reviews Extractor

https://chromewebstore.google.com/detail/amazon-reviews-extractor/maccgnaehlolfonlnplblgpippnhmoal
1•qwikhost•12m ago•0 comments

Feedr – Live audience Q&A for creators

https://apps.apple.com/us/app/feedr-by-mrvl/id6761885406
1•SupaMRVL•18m ago•0 comments

Dream League Soccer 2026

https://apps.apple.com/us/app/dream-league-soccer-2026/id1462911602
1•myothiha•20m ago•0 comments

Internet Protocol Version 8 (IPv8)

https://www.ietf.org/archive/id/draft-thain-ipv8-01.html
2•computersuck•25m ago•2 comments

WybeCoder: Verified Imperative Code Generation

https://facebookresearch.github.io/wybecoder/
1•matt_d•26m ago•0 comments

Don't Use A.I. To Do This

https://www.nytimes.com/2026/04/15/opinion/art-artificial-intelligence.html
1•saikatsg•26m ago•0 comments

GoLand

1•mukulmantosh•28m ago•0 comments

Finance ministers and top bankers raise serious concerns about Mythos AI model

https://www.bbc.com/news/articles/c2ev24yx4rmo
1•wood_spirit•31m ago•0 comments

JSONLines – My Favourite Format

https://heather.cafe/posts/jsonlines-my-favourite-format/
1•vismit2000•32m ago•0 comments

Best of the Best Tips for Kidepo on a Best Uganda Safari

https://substack.com/profile/416658153-godwin-kasekende/note/c-244740651
1•godwinkasekende•32m ago•0 comments

Europol-supported global operation targets over 75 000 users engaged in DDoS

https://www.europol.europa.eu/media-press/newsroom/news/europol-supported-global-operation-target...
3•jruohonen•32m ago•1 comments

The $10B Startup Training AI to Replace the White-Collar Workforce

https://www.bloomberg.com/news/features/2026-04-16/ai-company-hiring-on-linkedin-wants-to-train-y...
2•quantified•35m ago•1 comments

Pentagon Seeks Help from Ford and G.M.

https://www.nytimes.com/2026/04/16/business/pentagon-ford-general-motors-defense-production.html
1•geox•36m ago•0 comments

3D-Printed Homes, an Abandoned $590k Deposit, the FBI

https://www.propublica.org/article/3d-printed-affordable-housing-cairo-illinois-prestige
3•petethomas•38m ago•1 comments

Australia's Fiscal Point of No Return

https://caseyhandmer.wordpress.com/2026/04/16/australia-will-run-an-overt-command-economy-by-2040/
1•MrBuddyCasino•44m ago•0 comments

AI boom is city's weirdest tech boom, says S.F.'s chief economist

https://missionlocal.org/2026/04/ai-boom-controller-economist-egan-wagner/
2•littlexsparkee•45m ago•0 comments

Engineer open-sources radar system that's 95% cheaper than $250k offerings

https://www.tomshardware.com/maker-stem/open-source-radar-system-is-95-percent-cheaper-than-usd25...
3•Element_•56m ago•0 comments

Running Your Own AS: Direct Hetzner Peering

https://blog.hofstede.it/running-your-own-as-direct-hetzner-peering-a-fourth-edge-and-bringing-th...
1•319•57m ago•0 comments

Taste.md

https://pablostanley.substack.com/p/tastemd
3•cspags•57m ago•0 comments

FCC exempts Netgear from ban on foreign routers, doesn't explain why

https://arstechnica.com/tech-policy/2026/04/fcc-exempts-netgear-from-ban-on-foreign-routers-doesn...
8•rawgabbit•1h ago•2 comments

The Iranian Teens Behind Lego Trump [video]

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

Iran's Lego Slopaganda Creator [video]

https://www.youtube.com/watch?v=i5Q_v370OJg
3•abetusk•1h ago•1 comments

Flowsta Sign It

https://flowsta.com/sign-it/
1•solarpunked•1h ago•0 comments