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/

The hallmarks of protein and amino acid restriction in aging and longevity

https://www.cell.com/cell-press-blue/fulltext/S3051-3839(26)00077-0
1•simonebrunozzi•1m ago•0 comments

Sure mate, buy me a bloody coffee

https://peateasea.de/sure-mate-buy-me-a-bloody-coffee/
1•speckx•3m ago•0 comments

The AI Bailout Could Be Baked into the AI Bubble

https://prospect.org/2026/08/03/ai-bailout-could-be-baked-into-bubble-private-equity-life-insurer...
1•Ambolia•4m ago•0 comments

Rust Project goals 2026: Reflection and Comptime

https://github.com/rust-lang/rust-project-goals/blob/main/src/2026/reflection-and-comptime.md
1•Ygg2•4m ago•1 comments

How Many People Are in Space Right Now

https://www.howmanypeopleareinspacerightnow.com/
1•EndXA•5m ago•0 comments

"Shock from Jensen Huang's Bubble Will Be Severe"

https://news.sbs.co.kr/english/article.do?news_id=N1008688017
2•mapping365•6m ago•0 comments

Why Everything Is Getting Louder

https://www.theatlantic.com/magazine/archive/2019/11/the-end-of-silence/598366/
1•bookofjoe•7m ago•1 comments

SEC Semi-Annual Reporting Proposal Tracker

https://tzachizach.github.io/sec-semi-annual-proposal-tracker/letters.html
1•petethomas•7m ago•0 comments

HedgeHog: The new standard in backgammon analysis

https://hedgehog-bg.com/frontpage
1•twright•8m ago•0 comments

Games of FIFA World Cup 2026

https://siddhesh.substack.com/p/wc26
1•weekendvampire•8m ago•0 comments

Wall Street's bulls are starting to admit the earnings bubble is real

https://fortune.com/2026/08/03/60-40-investing-strategy-broken-earnings-bubble-big-tech-goldman-a...
1•mapping365•8m ago•0 comments

Code, craft, and the making of nested folders

https://www.figma.com/blog/code-craft-and-the-making-of-nested-folders/
1•handfuloflight•12m ago•0 comments

What Trump's latest slump means for the midterms

https://www.natesilver.net/p/what-trumps-latest-slump-means-for
1•7777777phil•15m ago•0 comments

Show HN: Open-source book format for instant translations and Android app

https://tbook.dev/
1•adubovskoy•15m ago•1 comments

Two Have Died in the Cyclospora Outbreak. The Fifty-State Count Is Now 21,913

https://www.marlerblog.com/case-news/two-people-have-died-in-the-cyclospora-outbreak-the-fifty-st...
1•speckx•15m ago•0 comments

Set Theory Symbols

https://www.rapidtables.com/math/symbols/Set_Symbols.html
1•marysminefnuf•19m ago•0 comments

Show HN: On the Dot – a timing game where the stopwatch vanishes after 1.5s

https://hitthedot.app/
1•Aditya_Tickoo•20m ago•0 comments

The Emerging Market for Intelligence- How Firms Buy and Sell AI [PDF]

https://pubs.aeaweb.org/doi/pdfplus/10.1257/jep.20261506
1•malshe•21m ago•0 comments

AI system Locus posttrains a model better than Qwen3

https://twitter.com/intology/status/2084319121332965804
1•yuchiz•21m ago•0 comments

Adding Go's Defer to the TypeScript Compiler

https://healeycodes.com/adding-defer-to-the-typescript-compiler
1•ibobev•23m ago•0 comments

Ryg_rans Is Not a Library

https://fgiesen.wordpress.com/2026/08/03/ryg_rans-is-not-a-library/
2•ibobev•23m ago•0 comments

ZX Spectrum System Tour: Sound

https://bumbershootsoft.wordpress.com/2026/08/01/zx-spectrum-system-tour-sound/
2•ibobev•23m ago•0 comments

Show HN: Educational Options Calculator

https://options.olelohonua.com/
1•rbrownrw8•25m ago•1 comments

Show HN: Java MultiTool – How I Replaced 6 browser tabs with a Single Program

https://github.com/ShiningPr1sm/JavaMultiTool
1•shiningpr0xsm•25m ago•0 comments

The Nudge Unit

https://www.pimlicojournal.co.uk/p/inside-the-nudge-unit
2•like_any_other•26m ago•1 comments

The UK is still trying to force an iCloud backdoor

https://9to5mac.com/2026/08/03/apple-launches-second-legal-challenge-to-uk-icloud-backdoor-order-...
2•BlueBerry2001•26m ago•0 comments

Show HN: I am selling my product launch platform LaunchDaddy

1•alizaid•26m ago•0 comments

ReMarkable Paper Pro Move Running Android 12

https://www.reddit.com/r/RemarkableTablet/comments/1v9jbdf/i_got_android_12_running_locally_on_a_...
2•rvz•29m ago•0 comments

Cloudflare Mobile – an open-source Android client for the Cloudflare API

https://github.com/hasanzadee/cloudflare-mobile
1•drakoncik•30m ago•0 comments

A Bitcoin fork where UTXOs expire after seven years

https://github.com/organicbitcoin/obtcd
2•organicbitcoin•31m ago•0 comments