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/

Show HN: Clinglang – A shorthand language for doctors to write structured cases

https://github.com/ppnpm/clinlang
1•ppnpm•2m ago•0 comments

OpenRCT2 v0.5.1 "Swamp Castle" released Last version to support Windows 7

https://openrct2.io/blog/2026/05/openrct2-v0.5.1-released
1•jandeboevrie•5m ago•0 comments

Guitar Tools – PWA for Scales, Circle of Fifths and More

https://guitar-tools.eejalab.xyz/
1•hannofcart•5m ago•1 comments

Sleuths uncover 100 suspicious images in Thermo Fisher antibody catalogue

https://www.nature.com/articles/d41586-026-01706-2
1•Teever•8m ago•0 comments

Cathy Tie's mission to genetically modify babies

https://www.theguardian.com/science/2026/may/30/there-is-no-way-to-stop-this-biotech-barbie-cathy...
1•skruger•16m ago•0 comments

Boom shakes S Carolina, rattling Columbia and raising questions about the cause

https://www.thestate.com/news/local/environment/article315932620.html
1•thunderbong•24m ago•0 comments

Show HN: I built an Android OS in the browser

https://mobilegym.dev/
1•haozaz•25m ago•0 comments

A Weekend in Claude Design Saves 3 Weeks of Claude Code

https://cashandcache.substack.com/p/the-prototype-tax-how-a-weekend-in
1•binyu•30m ago•0 comments

The 12 Futures of AI

https://medium.com/@butsch_79/the-12-futures-of-ai-a42d67bd9a20
1•andsoitis•33m ago•0 comments

The Biggest Tell That Something Was Written by AI

https://www.theatlantic.com/technology/2026/05/how-to-tell-ai-writing/687345/
4•nlawalker•34m ago•2 comments

Indian court ruling on Google keyword ads could reshape online advertising

https://www.reuters.com/business/media-telecom/indian-court-ruling-google-keyword-ads-could-resha...
1•rustoo•35m ago•0 comments

The next frontier of the luxury airline arms race might be waged in the toilet

https://www.cnn.com/travel/first-class-toilets-emirates-airbus-travel-intl-spc
2•tomodachi94•35m ago•0 comments

Poor sleep linked to rising cancer risk in under-50s

https://www.theguardian.com/society/2026/may/30/poor-sleep-linked-rising-cancer-risk-under-50s
1•andsoitis•39m ago•1 comments

Records Show UC Sharing Data with US Customs and Border Protection

https://www.dailycal.org/news/uc/records-show-uc-sharing-data-with-us-customs-and-border-protecti...
12•computerliker•40m ago•0 comments

Ask HN: What could happen if human beings become obsolete?

3•baddash•50m ago•1 comments

HeavensLive: The Marketplace That Gives You Free Money to Start – No Strings

https://www.heavenslive.com
1•bbenevolence•51m ago•0 comments

Mean Hand

https://portfolio.anna-zhang.com/projects/mean-hand
2•sdrothrock•1h ago•0 comments

Farewell AWS

https://www.adventuresinoss.com/farewell-aws/
2•cafkafk•1h ago•0 comments

An Usable Minimal Programming Language?

https://github.com/las-r/aergia
1•las_r•1h ago•1 comments

Ask HN: Why I have such bad luck?

2•alonsovm44•1h ago•0 comments

Vercel Analytics Alternative When You Outgrow the Free Tier

https://raah.dev/blog/vercel-analytics-alternative
1•Arindam1729•1h ago•0 comments

Show HN: NoTime – a Firefox extension for one-sentence summaries

https://addons.mozilla.org/en-US/firefox/addon/no-time/
1•dh1011•1h ago•1 comments

China's world-beating solar industry is in turmoil

https://economist.com/china/2026/05/26/chinas-world-beating-solar-industry-is-in-turmoil
2•andsoitis•1h ago•1 comments

SpaceX and the 'Enshittification' of Markets

https://www.ft.com/content/f724d500-fd45-4f38-86b8-549b5cae88ba
3•petethomas•1h ago•0 comments

Treasury Sec Bessent says US Government has seized $1B of Iran's crypto

https://twitter.com/bitcoinmagazine/status/2060442288598155762
1•computerliker•1h ago•0 comments

The Orchestration Tax

https://addyosmani.com/blog/orchestration-tax/
1•jnakano89•1h ago•0 comments

PROMPTPurify: 14 MB CPU-only prompt-injection guard (benchmarked vs. OSS guard)

https://github.com/securelayer7/PROMPTPurify
1•sandeep_kamble•1h ago•0 comments

Brazilian court orders restoration of Fordlandia, Henry Ford's Amazon ghost town

https://apnews.com/article/fordlandia-preservation-brazil-amazon-rainforest-henry-ford-370a0e6999...
1•divbzero•1h ago•0 comments

The Muser – Open-source alternative to Suno, runs locally, you own everything

https://github.com/noah-chelednik/the-muser
3•chedai__•1h ago•1 comments

Did DeepSeek v4 suddenly become more expensive?

https://imgur.com/gallery/hMEUsyW
1•thatwasunusual•1h ago•2 comments