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/

18 Years Later, IPv6 Reaches Majority

https://pulse.internetsociety.org/en/blog/2026/04/18-years-later-ipv6-reaches-majority/
1•jruohonen•2m ago•0 comments

AI job scams are booming – and I was fooled by one. Here is how to avoid them

https://www.theguardian.com/money/2026/apr/21/how-to-avoid-ai-online-job-recruitment-scams
1•sorokod•3m ago•0 comments

Simple ways to make meetings work better for employees on the autism spectrum

https://apnews.com/article/autism-awareness-work-neurodivergent-meetings-89dfea1bd912184ab0628377...
1•petethomas•6m ago•0 comments

Good-egg – Trust scoring for GitHub PR authors based on contribution history

https://github.com/2ndSetAI/good-egg
1•zdw•8m ago•0 comments

I made a rap album about SRE/DevOps incidents and outages and it slaps

https://poddaddy5x9.vercel.app/
1•logicminds•8m ago•1 comments

Subtyping, Subclassing, and Trouble with OOP

https://okmij.org/ftp/Computation/Subtyping/
1•signa11•13m ago•0 comments

Malicious Packages Don't Fit the Vulnerability Intelligence Model

https://www.first.org/blog/20260420-Malicious-Packages-Dont-Fit
1•jruohonen•14m ago•0 comments

An information operating system powered by local files

https://galaxybrain.com
1•marcinignac•14m ago•1 comments

Foundations of Computer Science: C edition (1994) [pdf]

https://blough.ece.gatech.edu/3020/focs.pdf
1•nill0•15m ago•0 comments

Social media content creator boost

https://www.qten.ai/
1•bandishankar•15m ago•1 comments

Aiguard-scan – Find secrets and vulnerabilities in AI-generated code

https://github.com/Hephaestus-byte/agent-guard
2•Hephaestus-byte•20m ago•0 comments

Making the most pickproof lock yet [video]

https://www.youtube.com/watch?v=-qUu8kIliy8
1•zdw•23m ago•0 comments

The Beauty of Bonsai Styles

https://longwoodgardens.org/blog/2023-05-17/beauty-bonsai-styles
3•lagniappe•32m ago•0 comments

SSA without Dominance for Higher-Order Programs

https://arxiv.org/abs/2604.09961
1•matt_d•35m ago•0 comments

Show HN: Kachilu Browser – a local browser automation CLI for AI agents

https://github.com/kachilu-inc/kachilu-browser
1•tmatsuzaki•47m ago•4 comments

A Roblox cheat and one AI tool brought down Vercel's platform

https://webmatrices.com/post/how-a-roblox-cheat-and-one-ai-tool-brought-down-vercel-s-entire-plat...
28•bishwasbh•52m ago•2 comments

Advancing BDD Software Testing: Dynamic Scenario Re-Usability and Step Auto-Comp

https://arxiv.org/abs/2402.15928
2•alihassaanmug•59m ago•0 comments

Show HN: A fake small claims court for petty complaints

https://benlirio.com/petty-small-claims/
1•blirio•1h ago•0 comments

Spotting Specification Gaps with Small Proof-Oriented Tests

https://risemsr.github.io/blog/2026-04-16-spotting-specs/
3•matt_d•1h ago•0 comments

Ancient Mughal tradition of pigeon-rearing thrives in India's capital

https://www.reuters.com/world/india/ancient-mughal-tradition-pigeon-rearing-thrives-indias-capita...
1•petethomas•1h ago•0 comments

"Capital Punishment" Trivia Game

https://games-by-will.com/capital-punishment/
2•wjuseck•1h ago•0 comments

Is AI a Bubble

1•Robelkidin•1h ago•3 comments

Sonnet 4.6 model could mistakenly use wrong model for OpenAI

https://github.com/anthropics/claude-code/issues/51417
1•keytalker•1h ago•0 comments

What Is Multi-Cloud Security? Challenges and Best Practices

https://spacelift.io/blog/multi-cloud-security
1•kat-w•1h ago•0 comments

Mac OS X 10.6 Snow Leopard – Now Available (2009)

https://news.ycombinator.com/item?id=781964
2•thomassmith65•1h ago•1 comments

RLMs are the new reasoning models

https://raw.works/rlms-are-the-new-reasoning-models/
1•dnw•1h ago•0 comments

Gell-Mann AImnesia

https://huonw.github.io/blog/2026/04/gell-mann-aimnesia/
1•dbaupp•1h ago•1 comments

Mall Code

https://mall.merkoba.com
1•madprops•1h ago•0 comments

Anthropic says OpenClaw-style Claude CLI usage is allowed again

https://docs.openclaw.ai/providers/anthropic
2•jmsflknr•1h ago•0 comments

No Naked Singularity, Whatever the Physical Collapse

https://zenodo.org/records/16181570
2•jruohonen•1h ago•0 comments