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

Comments

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

Firefox 148 Now Available with the New AI Controls / AI Kill Switches

https://www.phoronix.com/news/Firefox-148
2•Bender•2m ago•0 comments

Meta problem with URPF our bundle in Boca raton

https://metafixthis.com/
1•synthesis5x•4m ago•1 comments

Netflix sparks fury by cutting off access for almost 90M devices

https://www.dailymail.co.uk/sciencetech/article-15585211/netflix-cuts-support-older-devices-plays...
1•Bender•5m ago•0 comments

Paediatricians' blood used to make new treatments for RSV and colds

https://www.newscientist.com/article/2516079-paediatricians-blood-used-to-make-new-treatments-for...
1•colinprince•6m ago•0 comments

Ask HN: What Linux Would Be a Good Transition from Windows 11

1•Cyberis•6m ago•2 comments

U.S. Plans to Stop Funding Low-Earning Degrees. Indiana May Just End Them

https://www.insidehighered.com/news/government/state-policy/2026/02/23/indiana-bill-would-use-fed...
1•bikenaga•8m ago•0 comments

Show HN: Aru AI local-first AI assistant with semantic memory in browser SQLite

https://chat.aru-lab.space
1•AruLab•8m ago•0 comments

Token Anxiety

https://writing.nikunjk.com/p/token-anxiety
1•colinprince•9m ago•0 comments

Searchable index to identify and select European digital services

https://eurotechguide.com/european-cloud-sovereignty-score-search/
2•doener•10m ago•0 comments

War Propaganda and Iran: Script Used for Every Failed US War Hauled Out Again

https://greenwald.substack.com/p/war-propaganda-and-iran-the-exact
7•treetalker•14m ago•0 comments

I Ported Coreboot to the ThinkPad X270

https://dork.dev/posts/2026-02-20-ported-coreboot/
1•todsacerdoti•18m ago•0 comments

The Chinese AI app sending Hollywood into a panic

https://www.bbc.com/news/articles/ckg1dl410q9o
3•billybuckwheat•19m ago•0 comments

Nepal's community forests sit on unsold timber

https://news.mongabay.com/2026/02/nepals-community-forests-sit-on-unsold-timber/
1•PaulHoule•19m ago•0 comments

Show HN: OpenChrome – Parallel Browser automation MCP server

https://github.com/shaun0927/openchrome
1•shaun0927•19m ago•1 comments

C Enum Sizes; Or, How MSVC Ignores the Standard Once Again

https://ettolrach.com/blog/c_enum_msvc.html
1•todsacerdoti•20m ago•0 comments

Fair Use Paradox: Training and Distillation

https://www.jasonwillems.com/ai/2025/12/04/LLM-fairuse-irony/
3•jayw_lead•21m ago•0 comments

The first cars bold enough to drive themselves

https://arstechnica.com/features/2026/02/the-first-cars-bold-enough-to-drive-themselves/
1•LorenDB•22m ago•0 comments

2024 Interview with Alan Kay

https://www.youtube.com/watch?v=Laqu_WEyajU
2•dharmatech•22m ago•0 comments

Private Equity's Dry Spell Worse Than 2008 Crisis, Bain Says

https://www.bloomberg.com/news/articles/2026-02-23/private-equity-s-dry-spell-now-worse-than-2008...
1•toomuchtodo•23m ago•1 comments

Singing the Rug: Patterned Textile, the Origins of Indo-European Metrical Poetry

https://www.academia.edu/12830757/Singing_the_Rug_Patterned_Textiles_and_the_Origins_of_Indo_Euro...
1•jacquesm•26m ago•0 comments

I have tested an All European Mobile Suite for you

https://old.reddit.com/r/BuyFromEU/comments/1rcqc14/i_have_tested_a_all_european_mobile_suite_for...
1•doener•27m ago•0 comments

Safeclaw non generative AI introduces Safe GEN AI blogging

https://github.com/princezuda/safeInclaw
1•thesafeclaw•27m ago•1 comments

Discworld (Video Game)

https://en.wikipedia.org/wiki/Discworld_(video_game)
1•doener•28m ago•0 comments

Show HN: GuardLink – A threat model that lives in your source code

https://github.com/Bugb-Technologies/guardlink
1•animesh93•29m ago•1 comments

Bareclaw: Claude Code Is All You Need

https://elliotbonneville.com/claude-code-is-all-you-need/
1•elliotbnvl•32m ago•0 comments

It's Official: The Cybertruck Is More Explosive Than the Ford Pinto

https://fuelarc.com/news-and-features/its-official-the-cybertruck-is-more-explosive-than-the-ford...
2•ceejayoz•32m ago•1 comments

Show HN: Framework that interprets YAML+Lua into native SwiftUI and Jetpack Comp

https://github.com/josejuanqm/melody
2•josejuanqm•32m ago•1 comments

Show HN: A DeFi data API where AI agents pay per call via HTTP 402 micropayments

https://x402-api.fly.dev
1•fernsugi•33m ago•0 comments

Volvo issues major recall affecting over 40k electric SUVs

https://electrek.co/2026/02/23/volvo-issues-major-recall-affecting-over-40000-electric-suvs/
2•Bender•33m ago•1 comments

Texas is about to overtake California in battery storage

https://electrek.co/2026/02/23/texas-is-about-to-overtake-california-in-battery-storage/
1•Bender•33m ago•1 comments