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/

How to design, build and test small liquid-fuel rocket engines(1967)

https://spacha.github.io/How-to-Rocket/
1•num42•47s ago•0 comments

Rooting, firmware analysis and persistent credentials of TP-Link TL-841N

https://blog.juni-mp4.com/posts/42/rooting-the-tplink-tl841n-pt1/
2•mindracer•5m ago•0 comments

From now on, companies across the EU must be clear about their use of AI

https://digital-strategy.ec.europa.eu/en/policies/regulatory-framework-ai
2•speckx•6m ago•0 comments

GPU Accelerated Genetic Programming for Symbolic Regression – Beagle Framework

https://arxiv.org/abs/2603.12292
1•bane•6m ago•0 comments

Own your family tree with a local-first app

https://purplehoisin.com/own-your-family-tree/
1•fersarr•8m ago•1 comments

Australian booksellers raise alarm over destruction of rare titles to feed AI

https://www.theguardian.com/technology/2026/aug/02/australian-book-sellers-alarm-destruction-rare...
1•Teever•12m ago•0 comments

Chatto Is Robots

https://www.hmans.dev/blog/chatto-is-robots
1•mertbio•13m ago•0 comments

SQL vs. NoSQL: How to Answer This Interview Question in 2026

https://www.thetrueengineer.com/p/sql-vs-nosql-how-to-answer-this-interview
2•andrewstetsenko•14m ago•0 comments

Anthropic's Opus 5 Is Better at Resisting Prompt Injection

https://www.schneier.com/blog/archives/2026/07/anthropics-opus-5-is-better-at-resisting-prompt-in...
1•rustoo•15m ago•0 comments

Leadwerks Game Engine 5.1 Released

https://www.leadwerks.com/community/blogs/entry/2900-better-graphics-and-lower-system-requirement...
1•Josh_Klint•15m ago•0 comments

As Reddit stock falls, CEO questions value of Google's AI Overviews

https://arstechnica.com/ai/2026/08/reddit-ceo-on-ai-overviews-were-still-looking-for-that-win-win/
2•Brajeshwar•15m ago•0 comments

I refuse to bow to our AI overlords

https://grugq.substack.com/p/i-refuse-to-bow-to-our-ai-overlords
2•speckx•16m ago•0 comments

Why I've become interested in aesthetics

https://twitter.com/patrickc/status/2083931939673878592
1•tosh•16m ago•0 comments

iOS 26.6 and macOS Tahoe 26.6 Patch Hundreds of Security Flaws

https://www.macrumors.com/2026/07/27/ios-26-6-security-fixes/
2•akyuu•19m ago•0 comments

Exercise works for depression. So why isn't it treated like real medicine?

https://bigthinkmedia.substack.com/p/exercise-works-for-depression-so
1•wertyk•21m ago•1 comments

The Euler Disc Is the Wrong Shape [video]

https://www.youtube.com/watch?v=ti2qiU_JTUQ
1•num42•22m ago•0 comments

A SR-71 Blackbird Is Now Buried in the Mariana Trench

https://theaviationgeekclub.com/ichiban-wreckage-the-story-of-how-sr-71-blackbird-61-7974-was-rec...
2•situationista•23m ago•0 comments

I Was in the DSA. Here's What They Believe

https://www.thefp.com/p/i-was-in-the-dsa-heres-what-they
1•TimTheTinker•23m ago•0 comments

EU Code of Practice on Transparency of AI-Generated Content (Starting August)

https://digital-strategy.ec.europa.eu/en/policies/code-practice-ai-generated-content
2•tannhaeuser•24m ago•0 comments

Fukushima beach reopens for first time since 2011 quake and nuclear accident

https://www3.nhk.or.jp/nhkworld/en/news/20260802_04/
1•e2e4•25m ago•0 comments

SwitchBot Kata Friends AI Pet Review: Useless If You Don't Pay Up

https://gizmodo.com/switchbot-kata-friends-ai-pet-review-useless-if-you-dont-pay-up-2000789267
1•FiddlerClamp•25m ago•1 comments

Show HN: Rextio – Compile Python code natively using Rust with CPython fallbacks

https://github.com/rextio/rextio
1•rextio•26m ago•0 comments

Show HN: Adept – convert any YouTube playlist into a Udemy-like course

https://withadept.com
1•Sekhmet•27m ago•0 comments

August Is Here: Time Has Come to Label AI Deepfakes

https://read.misalignedmag.com/august-is-here-time-has-come-to-label-ai-deepfakes-2181ad0435ac
1•lcubw•28m ago•1 comments

TikTrack

https://einzzcookie.org/
1•kekseesser•29m ago•0 comments

Show HN: Replaybook, an Infrastructure Agent Evaluation Framework

https://github.com/ducks/replaybook
1•ducks_•32m ago•0 comments

Path of Exile 2 devs convinced Nvidia to fix a bug by sending it PC

https://www.pcgamer.com/games/rpg/after-a-year-and-a-half-of-rigorous-testing-path-of-exile-2-dev...
1•EvgeniyZh•34m ago•0 comments

Ask HN: What free browser tools do you use daily?

1•tooly_work•34m ago•0 comments

List of United States presidential assassination attempts and plots

https://en.wikipedia.org/wiki/List_of_United_States_presidential_assassination_attempts_and_plots
1•loughnane•35m ago•0 comments

Mesh2Motion Update 12: Horses and Offline Application

https://mesh2motion.org/news
1•wertyk•36m ago•0 comments