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/

Ask HN: Will we ever do something about patent trolls?

2•giancarlostoro•2m ago•0 comments

Fewer than 3 in 10 register for HMRC's Making Tax Digital shake-up

https://www.theregister.com/2026/04/10/mtd_hmrc/
1•Brajeshwar•3m ago•0 comments

Claude Mythos and misguided open-weight fearmongering

https://www.interconnects.ai/p/claude-mythos-and-misguided-open
1•speckx•4m ago•0 comments

Ask HN: How do designers and marketers use Command Line? AI? Technical tools?

1•vietthan•4m ago•0 comments

How do you and your team manage secrets day to day?

1•markvm•5m ago•0 comments

The Chilling Role of ChatGPT in Mass Shootings and Other Violence

https://www.motherjones.com/media/2026/04/chatgpt-tumbler-ridge-fsu-openai-chatbots-mass-shootings/
1•cdrnsf•7m ago•0 comments

Powell, Bessent discussed Mythos cyber threat with major U.S. banks

https://www.cnbc.com/2026/04/10/powell-bessent-us-bank-ceos-anthropic-mythos-ai-cyber.html
2•kaycebasques•8m ago•0 comments

Propulsion and Energy Physicist Photos at Deep Tech Week NYC 2026

https://www.flickr.com/photos/timventura/albums/72177720333020849/
1•timventura•8m ago•1 comments

The growth metric Silicon Valley loves most is also its least trusted

https://www.latimes.com/business/story/2026-04-07/growth-metric-silicon-valley-loves-most-is-also...
2•1vuio0pswjnm7•8m ago•0 comments

The effects of caffeine consumption do not decay with a ~5 hour half-life

https://www.lesswrong.com/posts/vefsxkGWkEMmDcZ7v/the-effects-of-caffeine-consumption-do-not-deca...
3•swah•8m ago•0 comments

Show HN: LightningWindowSwitcher – search for open windows on macOS/Win

https://lightningwindowswitcher.com/
1•afonso_soares•9m ago•0 comments

A Chicago Fan's Recordings of 10k Music Shows Are Now Online

https://blockclubchicago.org/2026/04/10/from-early-nirvana-to-phish-a-chicago-fans-secret-recordi...
2•xnx•10m ago•0 comments

Most Americans are using AI but are sick and tired of hearing about it: survey

https://nypost.com/2026/04/09/tech/most-americans-are-using-ai-but-people-are-sick-and-tired-of-h...
2•1vuio0pswjnm7•10m ago•0 comments

Journalists, whistleblowers and activists should set a Dead Man's Switch

https://alcazarsec.com/deadmanswitch/use-cases/journalists
1•alcazar•12m ago•0 comments

Rethinking the Riemann Hypothesis through wave interactions (Flux perspective)

https://zenodo.org/records/19450903
2•kimhanhee•13m ago•0 comments

AI Readiness Checker – See how AI bots interact with your website

https://zerokit.dev/tools/ai-readiness.html
1•SCbusiness•14m ago•0 comments

EU Big Tech fines top $7B in 2 years

https://www.cnbc.com/2026/04/10/google-meta-big-tech-6-billion-euros-eu-fine.html
3•1vuio0pswjnm7•14m ago•0 comments

Founders, Open Your App

https://timleland.com/founders-open-your-app/
1•TimLeland•14m ago•0 comments

Show HN: Zeroclawed: Secure Agent Gateway

https://github.com/bglusman/zeroclawed
3•bglusman•14m ago•0 comments

Is Schoolwork Optional Now?

https://www.theatlantic.com/technology/2026/04/ai-agents-school-education/686754/
1•JumpCrisscross•15m ago•0 comments

A full-on embrace: how the EU's largest news publisher fell in love with the US

https://www.theguardian.com/media/2026/apr/08/how-axel-springer-germany-mathias-doepfner-us-polit...
1•doener•16m ago•0 comments

Proton: Born Private

https://proton.me/mail/born-private
2•qkc3p3Jbf4•17m ago•1 comments

CPUid Compromised

https://www.bleepingcomputer.com/news/security/supply-chain-attack-at-cpuid-pushes-malware-with-c...
4•pashadee•18m ago•0 comments

March inflation soars, confirming Iran war price shock

https://www.axios.com/2026/04/10/cpi-march-inflation-iran-trump
2•Amorymeltzer•18m ago•1 comments

Show HN: VigIA – A deterministic FSM in .NET 10 to stop LLM hallucinations

https://github.com/JordanCT/VigIA-Orchestrator
1•JordanCT•18m ago•0 comments

Installing Every* Firefox Extension

https://jack.cab/blog/every-firefox-extension
2•speckx•19m ago•1 comments

Roundtable – Multi-character chat where each character runs on a different model

https://github.com/Kaidorespy/Roundtable
2•formslip•19m ago•0 comments

Food for Agile Thought #539: Sam Altmann? Bottom-Up Roadmaps, Disruption Cycles

https://age-of-product.com/food-agile-thought-539-sam-altmann/
1•swolpers•20m ago•0 comments

Fire – Foundation for Individual Rights and Expression

https://www.fire.org/
1•bilsbie•20m ago•0 comments

Practical Antiforgery in Software Design

https://hudlow.org/2026/practical-antiforgery
2•danhudlow•21m ago•0 comments