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/

Why do people see colours differently? Sometimes, it's the display's fault

https://physicsworld.com/a/why-do-people-see-colours-differently-sometimes-its-the-displays-fault/
1•EA-3167•31s ago•1 comments

GLP-1 Prescriptions for People with No Medical Need Are Climbing

https://www.nytimes.com/2026/09/22/well/ozempic-glp1-medical-reason.html
1•paulpauper•3m ago•0 comments

The Pangram Backlash Unfolding on College Campuses

https://www.theatlantic.com/technology/2026/09/college-professors-ai-detectors-pangram/688727/
1•paulpauper•5m ago•0 comments

US believes Nvidia's Huang had romantic relationship with alleged Chinese spy

https://www.ft.com/content/a55a2a22-4479-4f93-a445-6147a5c6d790
2•robbiet480•6m ago•0 comments

Adding proper security to your vibecoded Linux GUI apps

https://akitaonrails.com/en/2026/11/06/adding-proper-security-to-your-vibecoded-linux-gui-apps/
1•ayanb9440•7m ago•0 comments

HomeMinerProxy: home dashboard and Stratum proxy for Bitcoin lottery mining

https://github.com/Modanez/HomeMinerProxy
1•modanez•15m ago•0 comments

What do workers want in a leader? New study challenges stereotypes

https://newsroom.haas.berkeley.edu/research/what-do-workers-really-want-in-a-leader-new-study-cha...
2•rohanm93•15m ago•0 comments

SpaceX's $2T Bet Has a Physics Problem [video]

https://www.youtube.com/watch?v=S1umCJfbJ0w
1•mkesper•16m ago•0 comments

Show HN: S3mail – Serverless personal email on AWS with JMAP

https://github.com/zero11-0203/s3mail
1•zero11-0203•18m ago•0 comments

Killer App, the thrilling story about the rise of Telegram

https://www.faber.co.uk/journal/faber-set-to-publish-killer-app-the-thrilling-story-about-the-ris...
1•elies•18m ago•0 comments

Geometry, Kinematics, Statics, and DYNAMICS(2018) [pdf]

http://ruina.tam.cornell.edu/Courses/ME4730%20Fall%202018/books/Dynamics_Book_Bernstein__Goel__An...
1•pillars•19m ago•0 comments

Show HN: Promptcheckup – pass/fail check for prompt changes, with 95% intervals

https://github.com/gael55x/promptcheckup
1•gael55x•37m ago•0 comments

Show HN: Did prediction markets do any predicting this midterms?

https://app.artifactbin.dev/@vivek/AQTt2H-did-prediction-markets-predict-the-midterms
1•nuwandavek•39m ago•0 comments

Vapes, pouches and now tablets: The tobacco industry's newest nicotine product

https://www.theexamination.org/articles/zyn-melts-nicotine-tablets-kids
1•paimapi•45m ago•0 comments

Lighting the Skies

https://computer.rip/2026-10-25-searchlights.html
8•dverlaeckt80•49m ago•0 comments

Show HN: Backwords – Let AI teach you how to speak in reverse

https://backwords.greg.technology/
9•gregsadetsky•50m ago•2 comments

YC Backed Bron AI Accused of Using LeBron's Name and Likeness

https://frontofficesports.com/article/lebron-james-demands-ai-betting-app-stop-using-his-likeness/
3•sicgods•55m ago•1 comments

Meta introduces Spaces: custom app views built by your Muse agent

https://about.fb.com/news/2026/11/introducing-spaces-customize-muse-app/
1•willmarch•57m ago•1 comments

Show HN: Roomzine – turn a photo of your room into a redesign magazine

https://roomzine.com/
1•ayarmots•58m ago•0 comments

Magnets and Rare Earths

https://robodienst.com/learning-paths/magnets-and-rare-earths
1•Bluestein•1h ago•0 comments

No Big Deal (TV Series)

https://en.wikipedia.org/wiki/No_Big_Deal_(TV_series)
1•kakadu•1h ago•0 comments

Robodienst

https://robodienst.com/supply-chain/unitree-g1
1•Bluestein•1h ago•1 comments

Amagi-clipper, long recordings to captioned 9:16 clips, locally

https://github.com/amagilabs/amagi-clipper
1•amagilabs•1h ago•0 comments

What happens when a fake coding test reaches a security company?

https://www.sophos.com/en-us/blog/fake-coding-test-reaches-security-company
1•ram_rattle•1h ago•0 comments

Toddler Phone Calls Family and No One Else

https://hackaday.com/2026/11/03/toddler-phone-calls-family-and-no-one-else/
3•lxm•1h ago•0 comments

My personal Navier-Stokes or How Claude rebuilt the game we wrote in high school

https://writing.pointnine.com/p/my-personal-navier-stokes-or-how
2•chrija•1h ago•1 comments

Wikimedia Foundation Spending

https://en.wikipedia.org/wiki/Wikipedia:Wikipedia_Signpost/2017-02-27/Op-ed
1•germanrabbit•1h ago•0 comments

DeepMind AI agents find two weaknesses in legacy 1024-bit RSA cryptosystems

https://twitter.com/pushmeet/status/2118752095859794390
2•dvaplima•1h ago•0 comments

Show HN: Combining Bursts of Images

https://github.com/skittleson/burst-superres
2•skittleson•1h ago•0 comments

Brave Sells Its Search Index to AI, and Your Website Is Probably in It

https://www.searchenginejournal.com/brave-sells-its-search-index-to-ai-and-your-website-is-probab...
8•linhns•1h ago•1 comments