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•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/

The single most important factor that differentiates front-end frameworks

https://mjswensen.com/blog/the-single-most-important-factor-that-differentiates-front-end-framewo...
1•thunderbong•40s ago•0 comments

Open-Sourcing FastVideo Dreamverse: Real-Time Vibe Directing on Single B200 GPU

https://haoailab.com/blogs/fastvideo-dreamverse-release/
1•Yuxuan_Zhang13•46s ago•0 comments

Run your own local LLM with rate limits via API-keys

https://github.com/skorotkiewicz/llm-rt
1•modinfo•1m ago•0 comments

Search engine results are terrible

https://maurycyz.com/misc/search/
1•fernie•2m ago•0 comments

The bug bounty market is bifurcating: notes from finding 7 CVEs for $96

https://alexrhickey.substack.com/p/7-cves-96-and-the-market-that-stopped
1•boundary_check•2m ago•0 comments

Ferrari's First Electric Car Runs into Backlash in Italy and Beyond

https://www.nytimes.com/2026/05/27/business/ferrari-luce-electric-ev-backlash.html
1•garyrob•5m ago•1 comments

Inside Xi Jinping’s Strategy to Export Ideas on State Control

https://www.nytimes.com/2026/05/27/world/asia/china-solomons-pacific-security-threats.html
1•Cider9986•9m ago•1 comments

The Sludge on the Wall

https://grox.io/blog/28-the-sludge-on-the-wall/
1•iroddis•9m ago•0 comments

DNS over HTTPS, DNS over TLS, DNS over QUIC: Encrypted DNS Protocol Comparison

https://www.copahost.com/blog/encrypted-dns/
1•ggallas•10m ago•0 comments

Prosody IM 13.0.6 released – An XMPP/Jabber server written in Lua

https://blog.prosody.im/prosody-13.0.6-released/
1•neustradamus•10m ago•0 comments

Delta Steered Around Airline Industry Chaos

https://www.nytimes.com/2026/05/26/business/delta-airlines-ed-bastian.html
1•Cider9986•10m ago•0 comments

Writing Is Fundamental to How We Think

https://www.nytimes.com/2026/05/27/opinion/writing-creativity-ai.html
1•Cider9986•11m ago•0 comments

Paper from 1967 explaining origins of life was initially rejected 15 times

https://spacedaily.com/n-the-paper-that-explained-why-every-living-thing-on-earth-exists-was-reje...
1•Jimmc414•11m ago•1 comments

Is Peter Thiel the Target of Pope Leo's Gandalf Quote? An Investigation

https://arstechnica.com/tech-policy/2026/05/is-peter-thiel-the-target-of-pope-leos-gandalf-quote-...
1•vintagedave•12m ago•0 comments

Create Business DNA

https://labs.google.com/pomelli/
1•modinfo•16m ago•0 comments

Hilbert Transform as an Infinite Matrix

https://www.johndcook.com/blog/2026/05/23/hilbert-transform-as-an-infinite-matrix/
1•ibobev•17m ago•0 comments

Expected IQ Spread on a Jury

https://www.johndcook.com/blog/2026/05/26/expected-iq-spread-on-a-jury/
3•ibobev•18m ago•0 comments

Show HN: Epstein Index – Stock returns of Epstein-linked companies since 2008

https://epstein-index-six.vercel.app/
2•milanmuriithi•18m ago•0 comments

Hacker Just Revealed Tucker's Social Security Live on the Podcast [video][9 Min]

https://www.youtube.com/watch?v=5HfHvuuAmCQ
1•Bender•18m ago•0 comments

Fast Robot Kinematics and Dynamics in Jax

https://github.com/StanfordASL/frax
1•aanet•18m ago•1 comments

Workshop: Launch sandboxed development environments with a single command

https://ubuntu.com/blog/introducing-workshop-sandboxed-development-environments
1•dgavrilov•18m ago•0 comments

Calculating the expected range of normal samples

https://www.johndcook.com/blog/2026/05/26/calculating-expected-normal-range/
1•ibobev•18m ago•0 comments

Why Good Engineers Become Worse with AI

https://nidhish.dev/writing/good-engineers-worse-with-ai/
1•sneruz•23m ago•0 comments

Ask HN: How should universities teach coding now that every student uses AI?

1•devanshranjan•27m ago•1 comments

The Score: How to Stop Playing Someone Else's Game

https://www.lrb.co.uk/the-paper/v48/n10/david-runciman/trivial-pursuits
1•mitchbob•27m ago•1 comments

OpenAI Foundation commits $250M to help navigate AI disruption

https://www.reuters.com/business/openai-foundation-commits-250-million-help-workers-economies-nav...
2•geox•28m ago•2 comments

The fastest way to say each number

https://thegraycuber.com/fast_numbers/
1•marvinborner•28m ago•0 comments

I turned a 3-hour CSV data entry nightmare into a 10-second QuickBooks import

https://www.indiehackers.com/post/how-i-turned-a-3-hour-csv-data-entry-nightmare-into-a-10-second...
1•finconvertly•28m ago•0 comments

Why recessions are usually just bad luck

https://worksinprogress.co/issue/review-recession-the-real-reasons-economies-shrink-and-what-to-d...
2•paulpauper•29m ago•0 comments

Why AI Pipeline Needs Kafka and How Zilla Makes Kafka AI-Ready

https://www.aklivity.io/post/why-ai-pipeline-needs-kafka-how-zilla-makes-kafka-ai-ready
1•luk212•29m ago•0 comments