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/

Crypto executives desert the sinking ship for the AI lifeboats

https://www.independent.ie/business/technology/adrian-weckler-crypto-executives-desert-the-sinkin...
1•rbanffy•25s ago•0 comments

The Ergodicity Game

https://dennisforbes.ca/include/static/2026/08/ergodicity.html
2•llm_nerd•4m ago•0 comments

Synth Allegedly Previously Owned by Vangelis Sells for Record £401,465

https://thequietus.com/news/synth-allegedly-previously-owned-by-vangelis-sells-for-record-401465/
1•evo_9•5m ago•0 comments

Netflix Has Peaked

https://daringfireball.net/linked/2026/08/11/netflix-has-peaked
1•0xFA11•5m ago•0 comments

Trump signs executive order calling for fewer childhood vaccines

https://www.cnbc.com/2026/08/10/trump-vaccine-executive-order-autism.html
2•Fellw•5m ago•0 comments

FIPS 203 in italiano: ho tradotto lo standard ML-KEM e cosa CI ho messo intorno

https://www.quantumhorizon.it/fips-203-in-italiano/
1•remopulcini•6m ago•0 comments

World's Biggest Crypto Exchange Has Made It Harder to Fight Crime, Police Say

https://www.nytimes.com/2026/07/28/us/binance-crypto-crime.html
1•Djens•6m ago•0 comments

Show HN: VocalCode

1•wudmaing00•6m ago•0 comments

Skein-JS – The open-source LangGraph Platform alternative, for TypeScript

https://skein-js.github.io/skein-js/
1•mainawycliffe•6m ago•0 comments

Is Starlink a Secret Radar Constellation?

https://www.youtube.com/watch?v=jbp3kdJZ1_A
1•cwt137•7m ago•0 comments

Not sure where I am going with this garbage collection rabbit hole

https://ikouchiha47.github.io/2026/08/12/concurrency-and-gc.html
1•argentum47•7m ago•0 comments

Even Elite Colleges Have Become Trade Schools

https://www.nytimes.com/2026/08/12/opinion/elite-college-trade-school.html
1•7402•7m ago•0 comments

Isgithubdown.net – the most reliable GitHub status page

https://isgithubdown.net/
2•srschreiber•9m ago•1 comments

If AI Accelerates Your Software Factory, Where's the ROI?

https://johnpietro.com/content/if-ai-accelerates-your-software-factory-wheres-the-roi/
1•the8ug•10m ago•1 comments

Caveman Promises 65% Fewer Tokens. My Bill Didn't Move

https://zernie.com/blog/token-savings-wrong-number/
1•zernie•10m ago•0 comments

The Government Is Monitoring Anti-Flock TikTok and Instagram Accounts

https://www.404media.co/the-government-is-monitoring-anti-flock-tiktok-and-instagram-accounts/
1•Cider9986•11m ago•0 comments

RFC 1958: Architectural Principles of the Internet

https://www.rfc-editor.org/info/rfc1958/
1•zarakshR•13m ago•0 comments

Development Mindset for AI Programming

1•kva•13m ago•1 comments

Sqlfmt: An SQL gofmt-style formatter

https://tapoueh.org/blog/2026/08/introducing-sqlfmt-an-sql-gofmt-style-formatter/
1•plaur782•13m ago•0 comments

WolfSSH – Lightweight SSH Library

https://www.wolfssl.com/products/wolfssh/
1•gregsadetsky•14m ago•0 comments

Situational Awareness

https://economictimes.indiatimes.com/markets/us-stocks/wall-street-guide/25-year-old-hedge-fund-m...
1•gilfoyle_7•14m ago•0 comments

Show HN: Sonny OS – An async Rust microkernel replacing ROS 2/DDS with Zenoh

https://github.com/JackTrainer/Sonny
1•DemolitionMan•14m ago•0 comments

LLM Etiquette

https://paperless.blog/llm-etiquette
1•speckx•14m ago•0 comments

Solar Eclipse ESA Livestream

https://www.sciencedaily.com/releases/2026/08/260810015709.htm
2•dolibasija•15m ago•0 comments

Blocking LPR with Rust-Oleum Reflective Paint Does Not Work – Tested

https://ipvm.com/reports/rust-oleum-lpr-test
1•jhonovich•15m ago•0 comments

Unexpected Unemployment

https://blog.computationalcomplexity.org/2026/08/unexpected-unemployment.html
1•paraschopra•17m ago•0 comments

UMD Computer Science Graduates Report 95% Job Placement Rate

https://www.cs.umd.edu/article/2026/07/umd-computer-science-graduates-report-95-job-placement-rate
1•eatonphil•17m ago•0 comments

Some of tech's CEO suite is cloning itself with AI. What happens next?

https://www.bbc.com/future/article/20260811-what-its-like-to-meet-an-ai-clone
1•GaryBluto•19m ago•0 comments

The tech-funded program to create a new aesthetic

https://www.fastcompany.com/91581814/what-should-the-future-look-like-inside-the-tech-funded-prog...
1•paulpauper•20m ago•1 comments

Are Men to Blame for the Birth-Rate Collapse?

https://www.theatlantic.com/ideas/2026/08/fertility-men-housework-goldin/688238/
1•paulpauper•21m ago•1 comments