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/

Mission to Recover Downed F-15E Aircrew

https://theaviationist.com/2026/04/04/csar-in-the-spotlight/
1•everybodyknows•3m ago•0 comments

Evacuation of U.S. troops from Mideast base sends community groups scrambling

https://www.npr.org/2026/04/03/nx-s1-5770491/evacuation-bahrain-norfolk-troops
2•ceejayoz•4m ago•0 comments

Some Thoughts on AI and Research [pdf]

https://economics.mit.edu/sites/default/files/2026-04/IA%20AI%20note_1.pdf
1•Anon84•4m ago•0 comments

Efficient biosorption of nanoplastics by food-derived lactic acid bacterium

https://www.sciencedirect.com/science/article/abs/pii/S0960852426003159
1•rq1•14m ago•0 comments

Hackney

https://hackney.app/
1•jessriedel•14m ago•0 comments

Shooting Down Ideas Is Not a Skill

https://scottlawsonbc.com/post/shooting-down-ideas
12•zdw•14m ago•3 comments

Take-Two seemingly laid off a portion of its AI team, including head of AI

https://www.pcgamer.com/gaming-industry/take-two-has-seemingly-laid-off-an-unspecified-portion-of...
1•Herbstluft•15m ago•0 comments

Microsoft Discontinuing Publisher. Alternatives?

2•supliminal•15m ago•2 comments

Show HN: Contrapunk – Real-time counterpoint harmony from guitar input, in Rust

https://contrapunk.com/
1•waveywaves•17m ago•1 comments

Show HN: Vibooks – Local-first bookkeeping software built for AI agents

https://vibooks.ai/
1•adshao•17m ago•1 comments

Adjectives from the Future: The Dangers of Result-Based Descriptions (2019)

https://pradeep90.github.io/result-based-description.html
1•george11119•18m ago•0 comments

Extrapolating From Existence: Is it surprising that we exist now?

https://azeemba.com/posts/extrapolating-from-existence.html
1•azeemba•19m ago•0 comments

Dr. Dobb's Developer Library DVD 6

https://archive.org/details/DDJDVD6
2•kristianp•19m ago•0 comments

Post-Penultimate Conditional Syntax

https://joel.place/blog/conditionals/
1•youngkipper•19m ago•0 comments

OpenClaw and Claude Is Now Pay-per-Token: What It Costs and What to Do Next

https://shoofly.dev/blog/openclaw-claude-billing-change/
1•evanvuckovic•21m ago•1 comments

After the Mercor breach, I built a local secret scanner for AI-generated code

https://aigate-landing.onrender.com/
1•jricramc•27m ago•1 comments

Snap as the Canary: Why Every Streaming Platform Should Be Watching This Trial

https://www.ibtimes.sg/snap-canary-why-every-streaming-platform-should-be-watching-this-trial-84809
1•breve•31m ago•0 comments

Search Google for "Greek Alethia"

https://www.google.com/search?q=greek+alethia
1•moralestapia•31m ago•1 comments

Delve claiming that whistleblower was part of a "targeted cyberattack"

https://delve.co/blog/delve-sets-the-record-straight-on-anonymous-attacks
1•rrvsh•32m ago•1 comments

The decade long feud shaping the future of AI

https://www.wsj.com/tech/ai/the-decadelong-feud-shaping-the-future-of-ai-7075acde
1•maxutility•33m ago•0 comments

Kimi's response to "hello. what are you" is "I'm Claude "

https://opncd.ai/share/W7nlxn8C
3•alentodorov•33m ago•2 comments

AGI Live Demo

https://oroboroslabs-ai.github.io/liber-fontis/agi-demo.html
1•oroboroslabs•35m ago•0 comments

Show HN: SeekLink – Local hybrid search and link discovery for Obsidian vaults

https://github.com/simonsysun/seeklink
1•simonsysun•38m ago•0 comments

A quick introduction to "gemtext" markup

https://gemini.flounder.online/docs/gemtext.gmi
2•h14h•39m ago•0 comments

Show HN: Essence is a living human wisdom archive

https://esnc.me/
1•faalbane•41m ago•0 comments

Orchestra – the first AI-native research IDE

https://www.orchestra-research.com/perspectives/introducing-new-orchestra
1•zechenAGI•41m ago•1 comments

AWS Engineer Reports PostgreSQL Perf Halved by Linux 7.0, Fix May Not Be Easy

https://www.phoronix.com/news/Linux-7.0-AWS-PostgreSQL-Drop
41•crcastle•43m ago•3 comments

Show HN: Unify memory across agents and improve context rot, written in Rust

https://github.com/feelingsonice/MemoryBank
3•feelingsonice•47m ago•0 comments

Germany's cybersecurity authority (BSI) TLS cert untrusted on Apple devices

https://hko.sh/posts/bsi-root-untrusted-on-apple/
2•hko-sh•51m ago•2 comments

The machines are fine. I'm worried about us

https://ergosphere.blog/posts/the-machines-are-fine/
3•Plasmoid•52m ago•1 comments