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/

Focus Is the Main Feature: Why I Miss the Old Claude Code

https://alexkras.com/focus-is-the-main-feature-why-i-miss-the-old-claude-code/
1•akras14•1m ago•0 comments

Centaur vs. Cyborg Being a Fisherman

1•wwolfson97•2m ago•0 comments

NVK Vulkan Video Merged for Mesa 26.3

https://www.phoronix.com/news/NVK-Vulkan-Video-Mesa-26.3
2•doener•15m ago•0 comments

Persistent RCE via BootROM and Kernel

https://github.com/lexs201992-gif/Project-LION-Manager-Provisioning-Enterprise/blob/a310e16ec48cd...
1•lexs201992-gif•17m ago•0 comments

How 'Stacks' Went from Bodybuilding and Computing to Describing Everything

https://www.nytimes.com/2026/08/13/magazine/stacks-bodybuilding-computing.html
1•bookofjoe•19m ago•0 comments

Offgrid Electric Car (2025)

https://joeyh.name/blog/entry/offgrid_electric_car/
1•gnyeki•22m ago•0 comments

Show HN: Website made $29,000 in 24 hours

https://1milllionpixels.com/
1•westche2222•25m ago•0 comments

Vintage Artificial Intelligence Collection

https://archive.org/details/vintageai
3•Unai•25m ago•0 comments

How to be psychoactive to each other

https://eirinimalliaraki.substack.com/p/how-to-be-psychoactive-to-each-other
2•jger15•28m ago•0 comments

Dr. Dre Says He Uses AI to Produce Songs

https://gizmodo.com/dr-dre-says-he-uses-ai-to-produce-songs-2000802009
2•pseudolus•33m ago•0 comments

Manjaro.org Certificates Expired Again

https://manjaro.org
2•zebreus•35m ago•0 comments

Uber faces fine of nearly $1B over automated driver suspensions

https://techcrunch.com/2026/08/23/uber-faces-fine-of-nearly-1b-over-automated-driver-suspensions/
1•pseudolus•38m ago•0 comments

We asked Claude if we should help the baby bird.

https://james1ach.substack.com/p/mourning-doves
1•jger15•38m ago•0 comments

Twitch and Amazon hit with lawsuit for training AI with streamers' content

https://www.engadget.com/2242283/twitch-amazon-hit-with-lawsuit-for-training-ai-with-streamers-co...
4•pseudolus•39m ago•0 comments

Cardiovascular Risk Declines with Heated Tobacco Uptake

https://www.emjreviews.com/cardiology/news/cardiovascular-risk-declines-with-heated-tobacco-uptake/
2•thunderbong•40m ago•0 comments

Show HN: Cogumi meet – Free, P2P Private 1:1 meeting with AI note taking

https://www.meet.cogumi.com/
1•aichelles•42m ago•0 comments

Show HN: Neostatic, a tiny site/blog generator for neocities

https://github.com/giannitedesco/neostatic
1•scaramanga•44m ago•0 comments

Show HN: Repo world – A visual IDE for kids

https://github.com/michaelaz774/RepoWorld
2•michael774•44m ago•0 comments

How to Build a Live Chart from a REST API

https://www.amplitudepoint.com/blogs/live-chart-from-rest-api
1•markomarksdev•45m ago•0 comments

How on Earth do you code in r3forth? [video]

https://www.youtube.com/watch?v=4JN1ywONiN4
1•phreda4•48m ago•0 comments

Wrong antibody used in over 50 cell aging studies

https://www.nature.com/articles/d41586-026-02352-4
7•Murfalo•50m ago•1 comments

SIMD Softmax, Neon to WASM, with Google Highway

https://uchenml.tech/simd-softmax-google-highway/
2•euos•53m ago•0 comments

The asteroid currently hitting front end web development

https://nolanlawson.com/2026/08/23/the-asteroid-currently-hitting-frontend-web-development/
4•cdrnsf•53m ago•0 comments

The Real Imposter Syndrome

https://minimallysustained.com/blog/2026-08-19
2•blondie9x•55m ago•0 comments

Show HN: Own the Day – Own a page for 24 hours, starting at $1

https://ownthe.day
2•alexcloudstar•1h ago•0 comments

Show HN: GPT Image 2 – Generate images with sharper in-image text

https://gpt-image2.art
1•littlepp•1h ago•0 comments

GitHub – schlarpc/re-shell: Nix-powered agentic reverse engineering environment

https://github.com/schlarpc/re-shell/
4•lifeisstillgood•1h ago•0 comments

I built a low-latency AI companion that plays Skyrim with me

https://pantel.is/projects/ai-gaming-companion/
2•pantelisk•1h ago•0 comments

Brandolini's Law

https://en.wikipedia.org/wiki/Brandolini%27s_law
1•vismit2000•1h ago•0 comments

Know Your Paradoxes

https://blog.coredump.cx/p/know-your-paradoxes
4•surprisetalk•1h ago•0 comments