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/

Ancient DNA reveals 4000 years of grapevine diversity and viticulture in France

https://www.nature.com/articles/s41467-026-70166-z
1•layer8•43s ago•0 comments

The Military Failures of Fascism

https://acoup.blog/2024/02/23/fireside-friday-february-23-2024-on-the-military-failures-of-fascism/
1•JumpCrisscross•49s ago•0 comments

Brad Feld – Quality (Essay on Zen and the Art of Motorcycle Maintenance)

https://feld.com/archives/2026/03/quality/
1•rmason•3m ago•0 comments

Health NZ staff told to stop using ChatGPT to write clinical notes

https://www.rnz.co.nz/news/national/590645/health-nz-staff-told-to-stop-using-chatgpt-to-write-cl...
4•billybuckwheat•4m ago•0 comments

Specula: A framework for finding deep bugs in system code using TLA+

https://github.com/specula-org/Specula
1•matt_d•6m ago•0 comments

Nonfiction Publishing, Under Threat, Is More Important

https://newrepublic.com/article/207659/non-fiction-publishing-threat-important-ever
1•Hooke•6m ago•0 comments

Show HN: Text2troff – automatically converts plain text to TROFF format

https://github.com/jazzfan2/text2troff
1•robtoscani•6m ago•0 comments

Silence is the KPI: agents that don't talk

https://diegodella1.github.io/chango-daily/2026/03/03/silence-is-the-kpi-agents-that-do-not-talk/
1•changobot_dg•7m ago•0 comments

China is mass-producing hypersonic missiles for $99,000

https://kdwalmsley.substack.com/p/on-sale-now-china-is-mass-producing
2•zdw•7m ago•0 comments

RedSwarm Adversarial AI security scanner, one file, zero deps

https://github.com/beee003/redswarm
1•bee003•8m ago•1 comments

UK bans crypto donations to political parties in bid to curb foreign influence

https://apnews.com/article/uk-political-donations-cryptocurrency-ban-4deae8e71d664a042363fa79d617...
1•toomuchtodo•8m ago•1 comments

FairPhone: Industry First Nature Report

https://www.fairphone.com/stories/we-just-released-the-industrys-first-ever-nature-report
1•kruffalon•9m ago•1 comments

A lawyer won Anthropic's hackathon – what everyone missed

https://hadleylab.org/blogs/2026-03-22-the-lawyer-who-won/
1•idrdex•9m ago•1 comments

Creating Your First React Component Is Easy

https://www.youtube.com/watch?v=lVzYw35oRrk
1•stormsidali2001•10m ago•1 comments

Moon: The Lonely Life of a Man on the Moon

https://reactormag.com/moon-the-lonely-life-of-a-man-on-the-moon/
1•mindracer•11m ago•0 comments

Supreme Court rules ISPs aren't liable for subscribers' music piracy

https://www.engadget.com/entertainment/streaming/supreme-court-rules-isps-arent-liable-for-subscr...
2•zdw•11m ago•1 comments

Show HN: Whorl – Fingerprinting LLMs as horrible password generators

http://bountyplz.xyz/ai,/security/2026/03/15/Model-Fingerprinting-With-Whorl.html
1•tehryanx•12m ago•0 comments

Meta Lays Off 700 Employees, While Rewarding Top Executives

https://www.nytimes.com/2026/03/25/technology/meta-layoffs-ai-executives.html
1•nickvec•13m ago•2 comments

Sculpting Code

https://olshansky.info/posts/2026-03-25-sculpting-code
1•Olshansky•16m ago•0 comments

Daniel Stenberg – Emails

https://daniel.haxx.se/email/
1•leephillips•18m ago•0 comments

Joycraft: Upgrade your Claude Code harness

https://github.com/maksutovic/joycraft
1•max_maksutovic•19m ago•0 comments

Supreme Court Wipes Out Record Labels' $1B Piracy Judgment Against Cox

https://torrentfreak.com/supreme-court-wipes-out-record-labels-1-billion-piracy-judgment-against-...
5•nobody9999•22m ago•1 comments

How to make good lecture slides with AI assistance

https://alexanderhoyle.com/posts/ai-slide-gen.html
1•ahoho•23m ago•0 comments

Marco Arment did something awesome

https://www.natemeyvis.com/marco-arment-did-something-awesome/
1•speckx•24m ago•0 comments

Strong Customer Authentication

https://stripe.com/en-nl/guides/strong-customer-authentication
1•mooreds•25m ago•0 comments

Cella dev journey, a 3D space game in Rust

https://cellagame.com/uptospeed/
1•stldev•26m ago•1 comments

Tired of AI When will this era end?

1•s_u_d_o•26m ago•0 comments

On Claude Code

https://thoughtfractal.pages.dev/on-claude-code/
1•love2read•27m ago•0 comments

All non-government Claude services below two nines of uptime in March 2026

https://status.claude.com/uptime/yyzkbfz2thpt
2•nickvec•29m ago•0 comments

Bernie Sanders and AOC introduce bill to pause building of new datacenters

https://www.theguardian.com/us-news/2026/mar/25/datacenters-bernie-sanders-aoc
5•freediddy•30m ago•0 comments