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

Comments

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

StarTreks Scotty Programming Without AI

https://www.youtube.com/watch?v=bhjTpHxvEFI
1•niemandhier•58s ago•1 comments

Show HN: Crawl API

https://crawlapi.dev
1•mddanishyusuf•12m ago•0 comments

A daily allowance that adapts to your lifestyle – Daily Budget

https://dailybudget.dk
1•emilmoe•14m ago•0 comments

Show HN: TradeSet – Calculators for Tradies

https://www.tradeset.com.au
2•weirdjellyfish•15m ago•0 comments

Brookhaven RP

https://www.roblox.com/?rbx_source=appsflyer&rbx_medium=cpa&rbx_campaign=onelink&pid=ExperienceDe...
1•COLAK_LIMSO•15m ago•0 comments

Squeezing π from 122 Bits

https://text.marvinborner.de/2025-02-08-12.html
3•marvinborner•17m ago•0 comments

Show HN: A Discord-alternative community platform built in PHP

https://github.com/lesleyespire/motylo
2•Pyrobyte•19m ago•2 comments

Y Combinator Investments in Europe

https://old.reddit.com/r/Startup_eu/comments/1rrl1qw/y_combinator_investments_in_europe/
1•wrahim•24m ago•1 comments

White House Considers Waiving Jones Merchant Marine Act

https://apnews.com/article/jones-act-trump-trade-abcac596db839bff3679b3117d2e81b2
1•ChrisMarshallNY•26m ago•1 comments

The OpenClaw AI mania in China, as security fears and enthusiasm surge

https://www.scmp.com/tech/tech-trends/article/3346513/inside-openclaw-mania-gripping-china-securi...
1•giuliomagnifico•27m ago•0 comments

Faster Data Migrations for Postgres

https://clickhouse.com/blog/practical-postgres-migrations-at-scale-peerdb
1•saisrirampur•27m ago•0 comments

Fake rooms, props and a script to lure victims: inside an abandoned scam centre

https://www.theguardian.com/technology/2026/mar/14/inside-abandoned-scam-centre-cambodia-thai-border
2•sandebert•28m ago•0 comments

China's Edge in an Oil Shock: Electric Cars and Renewables

https://www.nytimes.com/2026/03/14/business/china-oil-cars.html
1•doener•31m ago•0 comments

$ABSURD – a meme coin built on one idea: everything stopped making sense

https://pump.fun/coin/Gt4w8KVwy7aPztiUm27YwsQgchzbS3srK8JYNpTpump
1•AbsurdCoin•33m ago•0 comments

React Quizzes for Preparing Interviews

https://www.reactchallenges.com/quizzes
1•DuffmanCC•40m ago•0 comments

You've got the LLMs to code, now you need the glue

https://codin.ro/youve-got-the-llms-to-code-now-you-need-the-glue-1-n/
3•CodinM•40m ago•0 comments

Spain's PM calls for end to UNSC veto power, criticises US over global conflicts

https://tribune.com.pk/story/2597072/spains-pm-calls-for-end-to-unsc-veto-power-criticises-us-ove...
1•vrganj•42m ago•0 comments

Show HN: I built a card-based eldritch IT support game in React

https://dadbodgames.itch.io/it-never-ends/devlog/1388428/building-a-system-for-the-absurd-why-it-...
2•euphoric_series•43m ago•0 comments

Jeff Bezos Upended the Washington Post

https://www.nytimes.com/2026/03/14/business/media/washington-post-jeff-bezos-layoffs.html
2•doener•44m ago•1 comments

Ronin – A Security Toolkit

https://ronin-rb.dev
2•Alifatisk•49m ago•0 comments

RAM kits are now sold with one fake RAM stick alongside a real one

https://www.tomshardware.com/pc-components/ram/fake-ram-bundled-with-real-ram-to-create-a-perform...
4•edward•50m ago•0 comments

"I've spent so many hours wasted on plugins"

https://www.musicradar.com/artists/ive-spent-so-many-thousands-of-hours-wasted-on-plugins-it-just...
1•latexr•51m ago•0 comments

Living with Jagged ASI

https://langkilde.se/blog/living-with-asi/
1•langkilde•52m ago•0 comments

Show HN: Colota – Open-source, self-hosted GPS tracker for Android

https://github.com/dietrichmax/colota
3•daturbod•55m ago•2 comments

Michael Burry worries about "structural manipulation" of Nasdaq-100 for SpaceX

https://twitter.com/michaeljburry/status/2032483200404992209
2•adrianmsmith•55m ago•0 comments

I built a free automation engineering calculator library

https://automationcalculators.net/
1•jacolotti•56m ago•0 comments

Two long-lost episodes of 'Doctor Who' have been found

https://www.nbcphiladelphia.com/entertainment/entertainment-news/two-long-lost-episodes-doctor-wh...
1•breve•59m ago•0 comments

UCP Protocol: The Internet Has 100M Shops and No Front Door

https://askucp.com/blog
2•defencetechhn•1h ago•0 comments

Show HN: Prove your SaaS isn't abandonware to boost checkout trust

https://www.gitpulse.dev/
1•bombashell•1h ago•3 comments

Space Exploration Logo Archive

https://spaceexplorationlogoarchive.webflow.io/
1•Michaelsoft•1h ago•0 comments