frontpage.
newsnewestaskshowjobs

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•1y ago

Comments

bastawhiz•1y ago
Is this a problem that people actually have?
xeromal•1y ago
Fun side project man!
primitivesuave•1y 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•1y 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•1y ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•1y 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•1y ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

V2: Quantum information spreading via higher-order operator correlators

https://arxiv.org/abs/2609.05472
1•northlondoner•6m ago•2 comments

The U.S. Army is about to blow up a cache of dangerous lead azide in Iowa–here's

https://www.scientificamerican.com/article/the-u-s-army-is-about-to-blow-up-a-cache-of-dangerous-...
2•bookmtn•6m ago•0 comments

AlphaXiv opens a public preprint server for AI-authored research papers

https://www.alphaxiv.org/
1•pirafrank•8m ago•0 comments

"I can tell you wrote this yourself"

https://em-online.bearblog.dev/i-can-tell-you-wrote-this-yourself/
1•BrunoBernardino•10m ago•1 comments

Testing an AM/FM radio PCB designed by Claude [video]

https://www.youtube.com/watch?v=vyClHoyzAL8
1•ez_mmk•11m ago•0 comments

Show HN: Linear Algebra in a Week

https://linear-algebra-in-a-week.vercel.app/#m1
1•tamnd•14m ago•0 comments

US Approved AI Chip Sales to China's Tencent, Alibaba, Data Show

https://www.bloomberg.com/news/articles/2026-11-19/us-approved-ai-chip-sales-to-china-s-tencent-a...
1•Teever•15m ago•0 comments

Hardcoded Ignorance

https://notes.erlend.sh/3n2ojo3n5yc2m
1•erlend_sh•17m ago•0 comments

Show HN: Bulchimbeon, night watch that keeps your Mac awake while AI agents work

https://github.com/s3onghyun/bulchimbeon
1•s3onghyun•21m ago•0 comments

How Many Books Will You Read Before You Die?

https://lithub.com/how-many-books-will-you-read-before-you-die/
1•austinallegro•25m ago•1 comments

Show HN: Vemlora – Edit text in images while preserving the original design

https://vemlora.io
1•abelce•27m ago•0 comments

Nudeps: Bundler-like imports, none of the baggage

https://lea.verou.me/blog/2026/nudeps/
1•codedrift_•27m ago•0 comments

Is Building in Public Dead?

https://pudlog.substack.com/p/is-building-in-public-dead
3•sarreph•34m ago•0 comments

How the Measles Virus Erases Immunity to Other Diseases

https://www.nytimes.com/2026/11/17/science/measles-virus-immune-system.html
2•ryan_j_naughton•36m ago•1 comments

Show HN: Isu-bench – coding agents tune an unseen web service with 11 load tests

https://isu-bench.trasta.dev/
1•trasta298•37m ago•0 comments

Views of the Same Thing

https://jonathannen.com/views-of-the-same-thing/
1•kqr•38m ago•0 comments

Navigating Excel files, emails and screenshots with agents

https://anaivebidder.com/posts/llm-reconciliation-benchmark/
1•rbnafo•40m ago•1 comments

Former YC President: "Stop!”

https://geoffralston.substack.com/p/stop
4•reducesuffering•40m ago•0 comments

Ask HN: Do you use computer-use heavily?

1•alexandroskyr•40m ago•0 comments

Clojure: Deserialization of Untrusted Data Allows Remote Code Execution

https://github.com/clojure/clojure/security/advisories/GHSA-x4c4-68gp-vrhc
2•andros•41m ago•0 comments

Google Meet Implements Audio Using Mix-Minus with WebRTC

https://www.red5.net/blog/how-google-meet-implements-audio-using-mix-minus-with-webrtc/
1•mondainx•44m ago•0 comments

Gopurs – A Super-Optimized PureScript-to-Go Compiler

https://github.com/0x000000000000000000001/gopurs
1•TheWiggles•45m ago•0 comments

No spy. No temptress. The Nvidia love affair is called RICO

https://www.gregpalast.com/the-so-called-affair-between-the-nvidia-chief-and-the-chinese-spy/
4•MilnerRoute•49m ago•1 comments

How should we evaluate image memory in AI agents?

https://twitter.com/AgentMemoryL/status/2123418533950591252
1•IreneAI•58m ago•0 comments

Design for Understandability

https://jschuster.org/blog/2026/11/19/design-for-understandability/
2•signa11•1h ago•1 comments

The Gervais Principle, or the Office According to "The Office" (2009)

https://ribbonfarm.com/2009/10/07/the-gervais-principle-or-the-office-according-to-the-office/
1•zombot•1h ago•0 comments

Show HN: Sandscale – Cloud infrastructure for AI creators, agents and developers

https://sandscale.dev
1•yasotha•1h ago•0 comments

Show HN: BSWorld – AI agents can now test Bluetooth code without hardware

https://github.com/XiaoMi/bsworld
2•bsworld-runner•1h ago•1 comments

Show HN: Everything else is DOWN while Tokenmobiles stays neutral

https://tokenmobiles.live
1•elykcim•1h ago•0 comments

Wellness check for friends working in cybersecurity

https://www.reddit.com/r/cybersecurity/comments/1xzkwmg/wellness_check_for_friends_working_in/
2•pseudohadamard•1h ago•2 comments