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/

What toke 10 years from terry Davis it toke me agents and days

https://github.com/salehdev-ux/holyrust
1•ptrerter•23s ago•0 comments

Religious Studies in Software Engineering

https://tombh.co.uk/religious-studies-in-software-engineering
1•birdculture•1m ago•0 comments

All Logic, No Bite

https://blog.coredump.cx/p/all-logic-no-bite
1•weinzierl•4m ago•0 comments

Musk came to Trump with the plan to throttle Ukraine's use of Starshield

https://twitter.com/Barnes_Joe/status/2111156654850847230
4•doener•4m ago•0 comments

Flux 3 Image Klein: open weights, 5.6B parameters

https://bfl.ai/blog/flux-3-image-klein
2•gmays•6m ago•0 comments

Ask HN: Why do developers hate Confluence?

1•hahnbee•8m ago•1 comments

Bug turns one of the biggest fears about Ray-Ban Meta smart glasses into reality

https://arstechnica.com/gadgets/2026/10/ray-ban-meta-smart-glasses-found-recording-audio-without-...
1•MBCook•9m ago•0 comments

Emu Concept – Make AI Follows Your Rules. (Feedback Wanted)

2•JariwalaH•10m ago•1 comments

Outlines – Structured Outputs for LLMs

https://github.com/dottxt-ai/outlines
1•modinfo•10m ago•0 comments

On the painful prescience of Seinfeld

https://alexberenson.substack.com/p/on-the-painful-prescience-of-seinfeld
1•CGMthrowaway•11m ago•0 comments

Prediction and Entropy of Printed English

https://archive.org/details/bstj30-1-50
1•Betelbuddy•13m ago•0 comments

I built a Claude Code terminal on the NDS

https://github.com/logancarrillo/ds-claude-terminal
1•tbgtech•13m ago•0 comments

Taco Bell drive-thru AI bot increased employee retention by making jobs easier

https://fortune.com/2026/10/14/yum-brands-executive-data-center-hate-ai-tools-improvement/
3•TMWNN•15m ago•2 comments

Cynical people are often seen as smarter. Here's why that might not be true

https://www.washingtonpost.com/lifestyle/2026/10/16/cynical-people-are-often-seen-smarter-heres-w...
1•bcaulfield•17m ago•0 comments

Framing Effect, Smoking Monks Parable

https://www.chrismeyer.blog/p/developing-perspective
1•whoishiding•18m ago•0 comments

Native, free and open-source WireGuard client for macOS

https://github.com/ventz/wombat-wireguard-mac-app
1•pkaeding•18m ago•0 comments

New Data Centers in NM and El Paso Could Undo Millions Spent on Climate Plans

https://elpasomatters.org/2026/10/14/el-paso-data-centers-meta-project-jupiter-climate-emissions/
1•hn_acker•19m ago•1 comments

Researchers Discover ChatGPT Can Drive a Car. Grok, on the Other Hand

https://www.thedrive.com/news/uh-oh-chatgpt-can-drive-a-car-and-grok-crashed-immediately
2•speckx•19m ago•0 comments

The Fatal Flaw of 911

https://www.themarshallproject.org/2026/10/16/911-book-policing-mental-health
8•plunge•20m ago•3 comments

Woman faces changing 211 accounts after .name domain termination

https://domainnamewire.com/2026/10/16/woman-faces-changing-211-accounts-after-name-domain-termina...
2•speckx•24m ago•0 comments

Infinite Jeffs

https://www.amazon.com/dp/B0GTJ4P1PT
4•gregsadetsky•25m ago•1 comments

Google's Core Web Vitals with Soft Navigations, Reflecting SPA Performance

https://web.dev/blog/crux-experimental-soft-navs
1•powdercloud•26m ago•0 comments

Load-Bearing

https://pluralistic.net/2026/10/15/sovereign-it/
2•hn_acker•26m ago•0 comments

Mathematical Foundations of Generative AI, IISc Bangalore

https://nptel.ac.in/courses/106108004
2•yarapavan•26m ago•0 comments

Show HN: Make house walkthrough videos only from photos – TensorPix

https://tensorpix.ai/usecases/real-estate-video-maker
1•barty777•27m ago•0 comments

Trump Bought $5M in SpaceX Debt Two Days Before Space Transport Executive Order

https://www.techdirt.com/2026/10/16/trump-acquired-5-million-in-spacex-debt-two-days-before-space...
6•hn_acker•28m ago•1 comments

Show HN: Donut Browser, the most private anti-detect browser

https://github.com/donutbrowser/donutbrowser
2•andrewzeno•29m ago•2 comments

Adapting Our Processes to the Changing World of Scientific Publication

https://blog.tmlr.org/2026/adapting-our-processes-to-the-changing-world-of-scientific-publication/
1•theanonymousone•30m ago•0 comments

A Trip Down Market Street (1906)

https://en.wikipedia.org/wiki/A_Trip_Down_Market_Street
1•Alexsky2•30m ago•1 comments

Scaling Pre-Training on Super Smash Bros. Melee

https://ericyuegu.com/hillclimbing-melee/
2•Samin100•33m ago•0 comments