frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

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/

Is Dreams of Violets AI slop – or the future of film-making?

https://www.theguardian.com/film/2026/jun/03/dreams-of-violets-ash-koosha-iran-tribeca-film-festival
1•fallinditch•1m ago•0 comments

Under the Hood of "Sum Ergo Demonstro" Demo [video]

https://www.youtube.com/watch?v=0_9YS2tsdYc
1•guiambros•2m ago•0 comments

TensorSharp: Open-Source Local LLM Inference Engine

https://github.com/zhongkaifu/TensorSharp
1•zhongkaifu•11m ago•1 comments

The ways we contain Claude across products

https://www.anthropic.com/engineering/how-we-contain-claude
3•jbredeche•13m ago•0 comments

US House votes for measure that would end Iran war, in blow to Trump

https://www.reuters.com/world/us/us-house-backs-resolution-curbing-trump-iran-war-powers-2026-06-03/
2•Cider9986•15m ago•0 comments

Microsoft releases search engine for use by ML agents

https://searchengineland.com/microsoft-releases-web-iq-powered-by-bing-but-designed-for-how-ai-ag...
1•marojejian•15m ago•1 comments

The Social Science Research Network Has Jumped the Shark

https://www.stephenbainbridge.com/p/the-social-science-research-network
1•droidjj•16m ago•0 comments

fizzy: desktop app built in zig (DVUI)

https://fizzyed.it/
2•atmikemikeb•16m ago•0 comments

Show HN: Bio Glyph – Turn Your Face into a One-Line Drawing

https://bio.bairui.dev/
2•subairui•22m ago•1 comments

Failing grades soar with AI usage, dwindling math skills in Berkeley CS classes

https://www.dailycal.org/news/campus/academics/failing-grades-soar-as-professors-see-greater-ai-u...
2•littlexsparkee•23m ago•0 comments

Your phone can use tiny skin-color changes to measure your heart rate

https://www.nature.com/articles/s41586-026-10507-6
1•marojejian•26m ago•1 comments

DNS Is for People – Not for IT Infrastructure

https://louwrentius.com/dns-is-for-people-not-for-it-infrastructure.html
3•louwrentius•28m ago•0 comments

Apple Bringing App Store Age Verification to Texas as SB 2420 Takes Effect

https://www.macrumors.com/2026/06/03/apple-app-store-texas-sb-2420/
2•dabinat•30m ago•0 comments

Reading MAI's efficiency gain. How to pick architectures like serious people

https://idlemachines.co.uk/essays/efficiency-gain
1•smaddrellmander•35m ago•0 comments

Broadcom Slides After AI Chip Outlook Disappoints Investors

https://www.bloomberg.com/news/articles/2026-06-03/broadcom-outlook-disappoints-investors-seeking...
1•lesbarclays•39m ago•0 comments

The Ü Programming Language

https://github.com/Panzerschrek/U-00DC-Sprache/
15•deterministic•41m ago•4 comments

Last.fm's robots.txt include's Asimov's three laws of robotics as URIs

https://www.last.fm/robots.txt
3•cdrnsf•42m ago•0 comments

NBA probe of Steve Ballmer at forefront after Aspiration fraud sentencing

https://www.latimes.com/sports/story/2026-06-02/nba-investigation-steve-ballmer-clippers-kawhi-le...
3•1vuio0pswjnm7•42m ago•0 comments

Liable Humans for AI Deployments

https://liablehuman.com/
1•jbboehr•42m ago•0 comments

OpenAI Agent Builder Is Being Deprecated

https://developers.openai.com/api/docs/deprecations
1•ILOVEZOA•43m ago•0 comments

Inside The British Lab Hunting for Dangers Lurking in A.I

https://www.nytimes.com/2026/05/24/technology/uk-ai-safety-institute.html
1•bookofjoe•44m ago•1 comments

Bitcoin's high-conviction holders turning into sellers as price hits new lows

https://www.cnbc.com/2026/06/03/bitcoins-high-conviction-holders-are-selling-as-price-hits-new-lo...
3•1vuio0pswjnm7•45m ago•0 comments

Polymarket cuts ties with Santos as regulators probe trades on Kalshi

https://apnews.com/article/george-santos-polymarket-kalshi-prediction-market-dcc34f4d927d074fe4e1...
1•1vuio0pswjnm7•46m ago•0 comments

Good Teachers Don't Cheat

https://jasonkena.github.io/blog/posts/good_teachers_dont_cheat/
1•RevoGen•47m ago•0 comments

Can I get feedback on my llms.txt file?

https://fyikamran.com/llms.txt
1•kamran210•48m ago•3 comments

A New California Proposal Could Effectively Ban All Aftermarket Tires

https://www.caranddriver.com/news/a71475295/california-could-ban-aftermarket-tires/
1•SilverElfin•48m ago•0 comments

Europe Enters the 'Era of Deportations

https://english.elpais.com/international/2026-06-03/europe-enters-the-era-of-deportations.html
1•rawgabbit•49m ago•0 comments

We have now entered the age of Life-as-a-Service

https://bwanaerp.medium.com/how-did-everything-become-a-subscription-3101951d4769
1•instarlaxy•51m ago•0 comments

1971

https://wtfhappenedin1971.com/
1•matteohorvath•55m ago•1 comments

A minimal linear algebra library in pure Go

https://github.com/igomez10/linearalgebra
2•igomeza•59m ago•0 comments