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/

Show HN: Markdown Gatekeeper – one current source per topic for AI agents

https://github.com/nanlogic/markdown-gatekeeper
2•sacravenger•6m ago•0 comments

TrackerControl for Android

https://trackercontrol.org/
1•uoaei•7m ago•0 comments

What we've learned building cloud agents

https://cursor.com/blog/cloud-agent-lessons
1•shenli3514•8m ago•0 comments

Show HN: Pastecmd – copy/paste between Phone/PC, end-to-end encrypted

https://pastecmd.com
2•DavidD•11m ago•0 comments

A Hedge-Fund Titan's Divorce Is Putting Wall Street's Staggering Wealth on Publi

https://www.wsj.com/personal-finance/a-hedge-fund-titans-divorce-is-putting-wall-streets-staggeri...
2•kamaraju•14m ago•0 comments

EngineRed: Asymmetric AI Warfare

https://sma-das.blog/blogs/enginered-asymmetric-ai-warfare
1•smadas•14m ago•0 comments

Insightify – AI review analytics for Shopify

https://apps.shopify.com/aireview-analyzer
1•Insightify•15m ago•0 comments

Show HN: Haserupt – A new way to reduce your phone usage

https://www.haserupt.com
2•vishalds•16m ago•0 comments

A Switch-Level Simulation Model for Integrated Logic Circuits (1981) [pdf]

https://www.cs.cmu.edu/~bryant/pubdir/MIT-LCS-TR-259.pdf
1•gregsadetsky•19m ago•0 comments

3D Spatial Transformer Network (2016)

https://github.com/shubhtuls/stn3d
1•peter_d_sherman•20m ago•0 comments

An Interpretation of the POSIX regex Standard [pdf]

https://dn790006.ca.archive.org/0/items/glenn_fowler_interpretation_of_posix_standard/glenn_fowle...
1•pcfwik•23m ago•0 comments

Dropbox says about 5k accounts compromised in August hack

https://www.reuters.com/technology/dropbox-says-about-5000-accounts-compromised-august-hack-2026-...
1•malshe•24m ago•0 comments

Firefox's new native iOS ad blocker won't block all ads

https://www.neowin.net/news/you-can-now-block-some-ads-in-firefox-on-ios/
3•bundie•29m ago•0 comments

LiveTube Yt live Front End

https://ytfe.vercel.app/
1•alexander2002•32m ago•0 comments

AI wealth is creating a 'mansion shortage' upending San Francisco housing market

https://text.npr.org/nx-s1-5930432
3•1659447091•33m ago•1 comments

32nd Annual Interactive Fiction Competition

https://ifcomp.org/
1•ChicagoDave•34m ago•0 comments

True Rate of Unemployment

https://www.lisep.org/tru
2•ptrhvns•34m ago•0 comments

From poop to plants, how wolves help blueberries grow and spread in northern Min

https://www.mprnews.org/story/2026/08/30/how-wolves-help-blueberries-grow-and-spread-in-northern-...
2•EveryonePoops•35m ago•1 comments

'Idiocracy' Predicted All of This

https://www.texasmonthly.com/culture/mike-judge-idiocracy-turns-20/
3•pseudolus•36m ago•0 comments

Poop-maxxing: How a 30-year-old chart became a hot gut health trend

https://www.nbcnews.com/health/health-news/poop-maxxing-bowel-movement-track-fiber-bristol-chart-...
2•EveryonePoops•37m ago•0 comments

The Next Generation of Blockchains

https://egoblockchain.com/
1•artitmuhaxhiri•38m ago•0 comments

Show HN: One versioned standard for a fleet's Python packages

https://github.com/gojiplus/py-canon
1•neehao•40m ago•0 comments

Show HN: Forum – WebRTC video app with individual stream links for OBS

https://komu-forum.vercel.app/
2•Komumech•45m ago•0 comments

Show HN: Didit.run – did your cron job run?

https://didit.run
1•vi0ne•45m ago•0 comments

The Bitocoin Mining Investor

https://www.thebitcoinmininginvestor.com/?r=85nwr&utm_campaign=referrals-subscribe-page-share-scr...
1•iaspt•46m ago•0 comments

OpenAI having an outage with 5.6 sol?

2•rcleveng•48m ago•1 comments

Were Claude's Weekly Limits Cut in Half? (and obscured by another 50% "deal"?)

2•benwills•51m ago•0 comments

How we could save petabytes of cache storage with Zstandard and Pingora

https://blog.cloudflare.com/cache-transcoding/
1•soheilpro•51m ago•0 comments

Fine, I'll build my own text editor

https://dbushell.com/2026/09/01/text-editor/
2•signa11•53m ago•0 comments

What's the Right Balance in Regulating AI?

https://weightythoughts.com/p/whats-the-right-balance-in-regulating
2•gmays•53m ago•0 comments