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/

The solar-powered compact car driving Tunisia's electric vehicle revolution

https://www.cnn.com/world/africa/electric-vehicle-solar-tunisia-spc
1•mooreds•3m ago•0 comments

Apply video compression on KV cache to 10,000x less error at Q4 quant

https://github.com/cenconq25/delta-compress-llm
1•polymorph1sm•4m ago•0 comments

Zprof – a comptime-configurable and minimal memory profiler for Zig allocators

https://github.com/ANDRVV/zprof
1•andrvv•5m ago•0 comments

VercelNet: The internet but only Vercel apps

https://vercelnet.vercel.app
1•aquajet•6m ago•0 comments

ForgeKV – Redis-compatible KV server in Rust that scales with cores

https://github.com/ForgeKV/forgekv
1•forgekv•6m ago•0 comments

Judge dismisses lawsuit by Sam Altman's sister accusing him of sexual abuse

https://www.reuters.com/legal/government/judge-now-dismisses-lawsuit-by-sam-altmans-sister-accusi...
1•Teever•6m ago•0 comments

Polsia Leaking Customers Secrets

https://twitter.com/NKCSS/status/2035760976377598252
2•NKCSS•13m ago•1 comments

Why I Vibe in Go, Not Rust or Python

https://lifelog.my/episode/why-i-vibe-in-go-not-rust-or-python
2•riclib•15m ago•1 comments

Hawaii storms have caused $1B in damage, governor says

https://www.bbc.com/news/articles/czxrdxn6qwqo
4•tartoran•15m ago•0 comments

Light on Glass: Why do you start making a game engine?

https://analogdreamdev.substack.com/p/light-on-glass
2•atan2•16m ago•0 comments

Claude Code for Academics [pdf]

https://github.com/aspi6246/ClaudeCodeTools/blob/main/Presentations/main.pdf
2•Anon84•17m ago•0 comments

C++26 Shipped a SIMD Library Nobody Asked For

https://lucisqr.substack.com/p/c26-shipped-a-simd-library-nobody
2•ibobev•19m ago•1 comments

WW3: What Are the Chances?

https://worldwarchance.com/
3•rossant•19m ago•0 comments

National survey of NIH-funded researchers shows precarious state of U.S. science

https://www.statnews.com/2026/03/19/nih-funding-national-researcher-survey-finds-cutbacks-disrupt...
4•ohjeez•20m ago•0 comments

Pakistan's Markets Face Selloff from Surging Oil, Conflict

https://www.bloomberg.com/news/articles/2026-03-17/pakistan-s-markets-face-selloff-from-surging-o...
2•JumpCrisscross•22m ago•0 comments

My DIY FPGA board can run Quake II

https://blog.mikhe.ch/quake2-on-fpga/part4.html
1•sznio•24m ago•1 comments

Dark Patterns from Google Workspace and Google Labs Flow

https://knowledge.workspace.google.com/admin/users/delete-or-remove-a-user-from-your-organization
3•legel•29m ago•1 comments

Delve accused of misleading customers with 'fake compliance'

https://techcrunch.com/2026/03/22/delve-accused-of-misleading-customers-with-fake-compliance/
1•lsowen•30m ago•0 comments

Revisiting a 1958 Map of Space Mysteries

https://www.atlasobscura.com/articles/what-do-we-know-about-space
1•ohjeez•30m ago•1 comments

Supply Chain Attack on Trivy

https://www.wiz.io/blog/trivy-compromised-teampcp-supply-chain-attack
7•tiri•31m ago•0 comments

Ask HN: How do you handle clients who ghost after receiving deliverables?

3•launchstack_dev•33m ago•3 comments

51% of freelancers experience non-payment – payment-gated delivery as a solution

https://proposallock.vercel.app
4•launchstack_dev•33m ago•0 comments

LG debuts new indoor air-to-water heat pumps

https://www.pv-magazine.com/2026/03/17/lg-debuts-new-indoor-air-to-water-heat-pumps/
1•toomuchtodo•34m ago•0 comments

I got tired of watching Cursor spin, so I built an MCP that pings my phone

https://pushary.com/ai-coding
1•aadilghani•34m ago•0 comments

Iran war casts shadow over HSBC and StanChart Middle East ambitions

https://www.reuters.com/business/finance/iran-war-casts-shadow-over-hsbc-stanchart-middle-east-am...
1•JumpCrisscross•34m ago•0 comments

Why Walmart and OpenAI Are Shaking Up Their Agentic Shopping Deal

https://www.wired.com/story/ai-lab-walmart-openai-shaking-up-agentic-shopping-deal/
1•JumpCrisscross•35m ago•0 comments

I built a 200-line library to stop AI agents from going rogue (capkit)

https://github.com/iamGodofall/capkit
1•Godofall•35m ago•0 comments

Do Androids Dream of Electric Sheep?

https://en.wikipedia.org/wiki/Do_Androids_Dream_of_Electric_Sheep%3F
3•sans_souse•37m ago•0 comments

Show HN: Refrax – my Arc Browser replacement I made from scratch

https://refrax.website/
2•kageroumado•39m ago•1 comments

The Artificial Self: Characterising the Landscape of AI Identity

https://arxiv.org/abs/2603.11353
1•est•40m ago•0 comments