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/

Updated Clairic and Clairic-flash are now open-weight

https://blog.cloudflare.com/open-clairic/
1•sixhobbits•51s ago•0 comments

Language Models Are Erasing Our Weirdness

https://academy.socos.org/language-models-are-erasing-our-weirdness/
2•greyface-•1m ago•0 comments

Waymo has stopped its robotaxis from driving on the freeway

https://arstechnica.com/cars/2026/11/waymo-suspends-freeway-driving-after-california-construction...
3•celsoazevedo•1m ago•0 comments

Meet Your Neighbors – A new type of political compass

https://meetyourneighbors.ai/
1•eltokh7•1m ago•0 comments

Blocking MeshCore Spam

https://mcfl.neocities.org/blog/01-block-spam/
1•celsoazevedo•2m ago•0 comments

MeshCore One

https://github.com/Avi0n/MeshCoreOne
1•celsoazevedo•3m ago•0 comments

Ask HN: Are we all tired of all these skybreaking CVEs/RCEs?

3•szopin•5m ago•0 comments

I'm a GM Master Technician Building a Team of AI Agents That Talk to Each Other

https://oddityforge.net
3•hckyplr•6m ago•0 comments

Canvas Dx, an AI app that diagnoses autism [video]

https://vimeo.com/791026418
1•illidan1000•6m ago•1 comments

Americans misled on Social Security for decades as clock counts down on benefits

https://www.foxnews.com/politics/americans-misled-social-security-decades-clock-counts-benefits-e...
1•dataflow•7m ago•1 comments

In France and Germany, the state backs one startup round in three

https://justraised.io/blog/state-backs-one-startup-round-in-three
1•jrbayguade•9m ago•0 comments

Jj-musubi: live sync for Jujutsu

https://www.serpentine.com/posts/2026/announcing-jj-musubi/
1•bos•10m ago•0 comments

Show HN: Toggles, a game based on analyzing data

https://toggles.codewalkers.net
1•mattw2121•12m ago•0 comments

Growing as an Engineer in a World of AI

https://nlopes.dev/writing/growing-as-an-engineer-in-a-world-of-ai
1•fagnerbrack•13m ago•0 comments

Apple Was Late to the Video Podcast Boom. Now It's Trying to Catch Up

https://www.nytimes.com/2026/11/16/business/media/apple-tv-podcasts-youtube.html
3•bookofjoe•15m ago•1 comments

To rank the biggest supercomputers, we're gonna need a bigger bench

https://www.theregister.com/hpc/2026/11/18/to-rank-the-worlds-biggest-supercomputers-were-gonna-n...
1•rbanffy•15m ago•0 comments

Q.Ant NPU Gen2 Photonic Processor

https://thequantuminsider.com/2026/11/17/q-ant-demonstrates-hybrid-photonic-gpu-system-for-langua...
1•treebeard901•16m ago•1 comments

Show HN: Phrack-TUI – A terminal reader for the Phrack archive

https://github.com/krmbzds/phrack-tui/tree/master
1•krmbzds•17m ago•0 comments

Scientists Thought This Amphibious Mouse Was Extinct. It's Reappeared

https://www.nationalgeographic.com/animals/article/ethiopia-water-mouse-extinct-rediscovery
1•spankibalt•18m ago•0 comments

GTA VI is a cynical and sometimes shallow joyride through the American psyche

https://www.cbc.ca/news/entertainment/grand-theft-auto-vi-review-9.7425005
2•uladzislau•20m ago•1 comments

CodeRabbit Verify: Agentic application testing and QA

https://www.coderabbit.ai/blog/introducing-coderabbit-verify
1•smb06•25m ago•1 comments

Amazon vows to fight the company's first NA union contract at a CAN warehouse

https://apnews.com/article/amazon-unifor-union-workers-1e0626c31c857ad54aa9b20d8c83b54d
3•Teever•25m ago•0 comments

The Life of a Composer

https://composer.pablostanley.com/#1
1•alexnew•25m ago•0 comments

Chainguard Introduces Free Starter and $500 Team Plans

https://devops.com/chainguard-introduces-free-starter-and-500-team-plans
1•CrankyBear•26m ago•0 comments

Nvidia Tells Employees That Company Is Moving on from Huang Era

https://www.bloomberg.com/news/articles/2026-11-18/nvidia-tells-employees-that-company-is-moving-...
4•TheAlchemist•26m ago•0 comments

Grand Theft Auto VI Critic Reviews

https://www.metacritic.com/game/grand-theft-auto-vi/critic-reviews/
3•TechTechTech•27m ago•2 comments

Play drums with your keyboard

https://plastic.audio/drum-pad/
1•madbyte•28m ago•0 comments

The social use of meow in the interaction between cats and humans

https://www.sciencedirect.com/science/article/abs/pii/S0003347226002940?via%3Dihub=
1•ohjeez•28m ago•0 comments

Harvard study estimates magnitude of US data center pollution - climate talks

https://www.nbcnews.com/tech/tech-news/harvard-study-estimates-magnitude-us-data-center-pollution...
1•Goodliff•28m ago•0 comments

Energy Wins Driving Optical Computing AI

https://spectrum.ieee.org/optical-computing-ai
1•rbanffy•28m ago•0 comments