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 Sleazy World of Reddit Marketing, Everything Is Fake

https://larslofgren.com/reddit-marketing/
1•landdate•5m ago•0 comments

AI was supposed to hit new grads hard. So far, unemployment data says otherwise

https://arstechnica.com/ai/2026/09/ai-was-supposed-to-hit-new-grads-hard-so-far-unemployment-data...
2•MrDresden•6m ago•0 comments

About Jammertest

https://www.jammertest.no/about/
1•Tomte•8m ago•0 comments

Novelist accused of using AI to write book removed from French prize list

https://www.theguardian.com/books/2026/sep/25/thelyson-orelien-goncourt-prize-france
2•pieterr•10m ago•0 comments

Luhnify – Zero-PII API for ID, Vat and Passport Validation (<100ms)

https://luhnify.com
1•josebermejo•13m ago•0 comments

Show HN: Translate a SVG back to a diagram – drawio

https://zoosky.github.io/accent-draw/
1•akapaka•13m ago•0 comments

LeftOpen – Native macOS menu bar app to see what's on localhost and close it

https://github.com/SonghaiFan/leftopen
1•songhai•14m ago•0 comments

Advice to a Beginning Software Engineer

https://www.seangoedecke.com/advice-to-a-beginning-software-engineer/
1•gfysfm•16m ago•0 comments

Finding the Purpose of Life

https://medium.com/@ravitandon2/the-purpose-of-life-debb9fb2e699
1•ravitandon1990•17m ago•0 comments

Using Claude Code: Spending your effort

https://twitter.com/i/status/2103576349499855160
1•Michelangelo11•17m ago•0 comments

Show HN: WhiteScreenLight.com– A simple white screen tool for testing/ lighting

https://whitescreenlight.com/
1•TechDevArchitec•19m ago•0 comments

Great news from Saturn's moon Enceladus in the search for life in space

https://www.eurekalert.org/news-releases/1145100?
1•andsoitis•26m ago•0 comments

Translation

1•bella786•26m ago•0 comments

Any2bazel – an OSS tool for agent-driven migrations to Bazel

https://blog.engflow.com/2026/09/09/introducing-any2bazel-oss-bazel-migration-tool/
1•nollbit•27m ago•0 comments

US DOE will give $5.25B to upgrade the grid for AI datacenters

https://www.theregister.com/systems/2026/09/25/uncle-sam-coughs-up-19b-for-grid-upgrades-as-datac...
2•meredithbloom•28m ago•0 comments

Exam

1•bella786•30m ago•0 comments

Commodified Intelligence

https://herecomesthemoon.net/2026/09/commodified-intelligence/
3•signa11•33m ago•0 comments

Sonic Pi now runs in the web

https://in-thread.sonic-pi.net/t/sonic-pi-now-runs-in-the-web/10058
2•blltprfmnk•33m ago•0 comments

Show HN: Pysimplicial, Python library for simplicial complexes in topological ML

https://github.com/kaifczxc-lab/pysimplicial
1•siritoriyowai_•34m ago•1 comments

One company is at the center of a wave of rogue AI attacks

https://www.theverge.com/ai-artificial-intelligence/1000644/irregular-rogue-ai-cyberattacks-hacki...
2•meredithbloom•35m ago•0 comments

Today, 150k – 200k kids in the USA are locked up in "fix your teen" programs

https://elan.school/
2•bingowasthename•36m ago•0 comments

OpenAI says agents leaked 53 images from ChatGPT users

https://www.theguardian.com/technology/2026/sep/25/openai-agents-leaked-53-images-chatgpt
2•andsoitis•36m ago•0 comments

Transformer Can Hold Two Thoughts at Once: Evidence of Linear

https://arxiv.org/abs/2609.29845
1•sbulaev•37m ago•0 comments

Nexflix: Workload Attestation on Managed Compute

https://netflixtechblog.com/trading-a-cloud-identity-for-your-own-workload-attestation-on-managed...
2•meredithbloom•38m ago•0 comments

Legendary US spy plane vanishes from CA base amid mystery over new NASA aircraft

https://economictimes.indiatimes.com/news/international/global-trends/legendary-us-spy-plane-vani...
1•gscott•40m ago•0 comments

Comprehension Layer

https://www.fujimon.com/blog/comprehension-layer
1•yuyafujimoto•44m ago•0 comments

Alaska's Orange Rivers More Metallic Than Acid Mine Drainage

https://www.ucdavis.edu/climate/news/alaskas-orange-rivers-more-metallic-acid-mine-drainage
1•littlexsparkee•45m ago•0 comments

Fireside Friday, September 25, 2026

https://acoup.blog/2026/09/25/fireside-friday-september-25-2026/
1•Tomte•52m ago•0 comments

Show HN: 12 Puzzle – a sliding puzzle on the hyperbolic plane

https://mametter.itch.io/12-puzzle
1•mametter•52m ago•1 comments

Show HN: I built a chatbot that can only reply in emoji, powered by Jev

https://jev.chat
1•skewcy•57m ago•0 comments