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/

Who is behind the anti-AI psyop?

https://kerkour.com/anti-ai-psyop
1•Megabinator•1m ago•0 comments

A well-built MCP server, Haiku matched Opus

https://m3.sineframe.com/blog/mcp-server-design-small-models
1•stag•1m ago•0 comments

Lift: High-fidelity 4D surface and volume physics transformer in latent space

https://www.universalagi.com/research/lift
1•ameerh•2m ago•0 comments

Caire: Content aware image resize library

https://github.com/esimov/caire
1•astroanax•3m ago•0 comments

Gristle.app: A free, browser-based animation editor (like Flash, no install)

https://gristle.app
1•samponeill•4m ago•0 comments

Democracy Perception Index 2026 [pdf]

https://146165116.fs1.hubspotusercontent-eu1.net/hubfs/146165116/DPI%202026.pdf
1•slowin•4m ago•0 comments

Gemini 4 Argon in Google Antigravity

https://antigravity.google/blog/gemini-4-argon-in-google-antigravity
1•stwrt•5m ago•0 comments

Child Mortality Has Declined in All World Regions

https://ourworldindata.org/data-insights/child-mortality-has-declined-in-all-world-regions
1•karakoram•5m ago•0 comments

A Writer's Life: A Life

https://www.poetryfoundation.org/articles/1829132/a-writers-life-a-life
1•smileduck•5m ago•0 comments

DNS Doom – No shame in the Domain Name game: DNS is doomed

https://www.theregister.com/columnists/2026/10/12/no-shame-in-the-domain-name-game-dns-is-doomed-...
1•baud147258•6m ago•0 comments

Show HN: Sayso, free open source dictation for Mac, Windows, and Linux

https://github.com/watzon/sayso
1•watzon•6m ago•0 comments

Ask HN: Present, near-future state of nuclear (betavoltaic, 6C, etc.) batteries?

1•eth0up•7m ago•0 comments

Show HN: Surprisal – a language identifier in ~250 lines of C. No ML,no training

https://github.com/ahhyoushh/zip-surprisal
1•iushh•7m ago•0 comments

Google's new WeatherNext 3 AI enabled this free weather app

https://www.freethewind.com/whyfree
1•timetrax•9m ago•0 comments

The Private Life of a Cat (1945)

https://publicdomainreview.org/collection/the-private-life-of-a-cat-ca-1945/
1•lufxen•10m ago•0 comments

Nvidia falls to 34% of China's AI chip market as Huawei takes 28%

https://theinference.org/article/nvidia-falls-to-34-of-china-s-ai-chip-market-as-huawei-takes-28
2•vincentjiang•10m ago•0 comments

Slopcore – A Guide to Claudia

https://claudia.gallery/
1•phillc73•11m ago•1 comments

Unparliamentary Language

https://en.wikipedia.org/wiki/Unparliamentary_language
1•samclemens•11m ago•1 comments

Redesigning Source Control at Anthropic

https://www.anthropic.com/engineering/redesigning-source-control
2•Philpax•13m ago•0 comments

The fastest open Firebase alternative – an 8-way benchmark comparison

https://github.com/burggraf/baas-bench/tree/main/results/realworld-api-v3/project-management-capa...
1•barfoos•13m ago•0 comments

Show HN: RemainderBot – spends leftover Claude/Codex quota on reviewable PRs

https://github.com/arimwilson/openremainderbot
2•ariwilson•14m ago•1 comments

Keepword a decentralised network that checks if a company silently edits TOS

https://keepword.net/
3•Aelthorim•15m ago•1 comments

The Rise and Flush of Skibidi Toilet

https://rollingstoneindia.com/the-rise-and-flush-of-skibidi-toilet/
1•rdmuser•17m ago•0 comments

Show HN: Revise CLI

https://www.npmjs.com/package/revise
1•artursapek•18m ago•1 comments

The AI Enthusiasm Gap

https://mitch.website/blog/ai-enthusiasm-gap/
2•hyperultra•20m ago•0 comments

Launch HN: Consus (YC F24) – LLM gateway for companies handling sensitive data

5•ericmags•22m ago•1 comments

Perplexity's AI agents helped build a database with Rust

https://thenewstack.io/perplexity-cobbledb-ai-database/
1•shenli3514•22m ago•0 comments

Now That Information Is Free, What's a College Campus For?

https://commonedge.org/now-that-information-is-free-whats-a-college-campus-for/
12•surprisetalk•22m ago•21 comments

Server44 – Tip tracker for servers and bartenders

https://server44.app/
1•ehm-tech•26m ago•0 comments

Factories are automated. Their back offices are stuck in 1995

https://www.lleverage.ai/company/blog/why-your-back-office-spends-80-of-time-on-admin-the-researc...
1•leonardopiumi•26m ago•0 comments