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/

Show HN: Wordbird: free dictation for Mac running Nvidia Parakeet locally

https://github.com/tillahoffmann/wordbird
1•earthnail•12s ago•0 comments

Ark – AI agents waste ~30% of context on tool schemas.I built runtime that learn

https://github.com/atripati/ark
1•atripat6•48s ago•0 comments

Show HN: A Query Engine: A 7-Part Deep Dive in Rust

https://tech-lessons.in/en/blog/inside_a_query_engine_introduction/
1•sarthakmakhija•1m ago•0 comments

Apple Rolls Out Age Verification Requirements for UK Users

https://www.bloomberg.com/news/articles/2026-03-25/apple-rolls-out-age-verification-requirements-...
1•miohtama•3m ago•1 comments

Show HN: Stickynotes.fyi – a free browser sticky notes board that saves locally

https://stickynotes.fyi
1•saidin•4m ago•0 comments

Population's cadmium overexposure requires urgent action, French agency tells

https://www.lemonde.fr/en/france/article/2026/03/25/population-s-cadmium-overexposure-requires-ur...
2•rawgabbit•4m ago•0 comments

Claude Is Down

3•haebom•5m ago•0 comments

Agentic Utilities – Citrini Research

https://www.citriniresearch.com/p/agentic-utilities
1•stareatgoats•5m ago•0 comments

Ask HN: How do you manage knowledge you accumulate as a developer?

1•kubanowacki•6m ago•0 comments

We Social Engineered Our Own AI. Here's What Happened

https://reikon.io/blog/red-team/
1•Monotoko•7m ago•0 comments

The Terminal I Wished Existed, So I Built It

https://yaw.sh/blog/the-terminal-i-wished-existed-so-i-built-it/
1•tkjef•7m ago•0 comments

The Comeback of Small Conferences

https://www.flarup.email/p/the-comeback-of-small-conferences
1•thecosas•8m ago•0 comments

Europe facing fuel shortage within days, warns Shell boss

https://finance.yahoo.com/m/0f82d44c-cba3-3392-853e-5964c10f94bc/europe-facing-fuel-shortage.html
3•alecco•9m ago•0 comments

The frantic, high-tech fight to stop climate-fueled dengue fever

https://grist.org/health/the-fight-to-stop-climate-fueled-dengue-fever-mosquitoes/
1•Brajeshwar•10m ago•0 comments

Apple introduces age verification for iCloud accounts in the UK

https://www.engadget.com/big-tech/apple-introduces-age-verification-for-icloud-accounts-in-the-uk...
1•scrlk•12m ago•0 comments

Small Models Are Getting Easy. Serving Them Still Isn't

https://blog.humidresearch.link/posts/small-models-are-getting-easy-serving-them-still-isnt/
1•aarmenante•12m ago•0 comments

Tracing the March 2026 TeamPCP supply chain campaign

https://securitylabs.datadoghq.com/articles/litellm-compromised-pypi-teampcp-supply-chain-campaign/
1•scapecast•13m ago•0 comments

AI chatbots ranked by data they collect

https://surfshark.com/research/chart/ai-chatbots-privacy
1•giuliomagnifico•15m ago•0 comments

TikTok Scraper API with predictable pricing and high request limits

https://jsonscraper.com/services/tiktok-scraper-api
1•mjohnsoncode•15m ago•0 comments

Is OpenClaw a new paradigm, or just better automation UX?

https://github.com/chadsly/knit
1•chadsly•16m ago•1 comments

Show HN: Gameplan – Play poker against a solver

https://gameplan.poker/
1•joelmanner•17m ago•0 comments

Xeneta Port Congestion Map

https://www.xeneta.com/hubfs/ocean-congestion/Port_Congestion_Service_Map.html
2•toomuchtodo•19m ago•0 comments

The Epistemology of Microphysics

https://www.edwardfeser.com/unpublishedpapers/microphysics.html
1•danielam•19m ago•0 comments

Show HN: Hit Rec Notes – Global Windows Dictation with Whisper API

https://hitrecnotes.com/
1•MinuteMW•20m ago•0 comments

Connecticut law lets lenders go after small businesses nationwide

https://www.npr.org/2026/03/25/nx-s1-5745122/small-business-cash-advance-loans-connecticut
1•georgecmu•21m ago•0 comments

Show HN: Pomodare – synchronized Pomodoro timer for two, via 4-letter code

https://aragosta-bot.github.io/pomodare/
1•croppka1•21m ago•0 comments

Per session security for Claude Code

https://github.com/derek-larson14/claude-guard
1•derek-larson•22m ago•0 comments

Windows native HTML/CSS UI framework, looking for feedbacks

https://github.com/M4iKZ/mui-sudoku-demo
1•M4iKZ•24m ago•0 comments

Oil Theft Is Burning a Billion-Dollar Hole in the West Texas Economy

https://www.bloomberg.com/news/features/2026-03-25/surging-oil-prices-could-worsen-crude-theft-in...
1•toomuchtodo•24m ago•1 comments

Changing One Constant Reduced Our CI Memory Usage by 70%

https://coder.com/blog/how-changing-one-constant-reduced-our-ci-memory-usage-by-70percent
4•spikecurtis1•25m ago•0 comments