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•11mo ago

Comments

bastawhiz•11mo ago
Is this a problem that people actually have?
xeromal•11mo ago
Fun side project man!
primitivesuave•11mo 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•11mo 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•11mo ago
You can still control it by adding "//no-await". In fact, the "//no-await" makes me feel more clear.
nextweek2•11mo 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•11mo ago
It should be noted that there is already a lint rule for this: https://typescript-eslint.io/rules/no-floating-promises/

Why one of the largest digital banks chose Clojure [video]

https://www.youtube.com/watch?v=pleo1VA9D70
1•amb135cm•1m ago•0 comments

Show HN: I Spy AI – Detect AI-Generated Images, with an MCP Server

https://www.ispyai.io/
1•shawhunterm•2m ago•0 comments

Moon-joy: they should have sent a poet (so they did)

https://nothingbutawordbag.substack.com/p/moon-joy-they-should-have-sent-a
1•bryanrasmussen•2m ago•0 comments

Canada's PM calls economic ties with US a weakness that must be corrected

https://abcnews.com/Business/wireStory/canadas-prime-minister-economic-ties-us-weakness-corrected...
2•jmward01•2m ago•0 comments

OpenEMIS-MCP – human English (or Arabic) queries over a school system

1•drkhindol•5m ago•0 comments

Show HN: A lightweight way to make agents talk without paying for API usage

https://juanpabloaj.com/2026/04/16/a-lightweight-way-to-make-agents-talk-without-paying-for-api-u...
1•juanpabloaj•9m ago•0 comments

Go news Android app revamped with the help of Claude Code

https://play.google.com/store/apps/details?id=com.minaandrawos.golangnews&hl=en_US
1•minaandrawos•11m ago•1 comments

Corner-Case RCU Implementations

https://people.kernel.org/paulmck/stupid-rcu-tricks-corner-case-rcu-implementations
1•luu•16m ago•0 comments

Bank Python

https://calpaterson.com/bank-python.html
1•Redoubts•20m ago•0 comments

Show HN: TRELLIS.2 image-to-3D running on Mac Silicon – no Nvidia GPU needed

https://github.com/shivampkumar/trellis-mac
5•shivampkumar•23m ago•0 comments

How We Got the Favicon

https://thehistoryoftheweb.com/how-we-got-the-favicon/
4•valzevul•24m ago•1 comments

Tariff-refund portal is about to be America's hottest website on Monday

https://www.npr.org/2026/04/19/nx-s1-5786635/tariff-refunds-customs-ace-portal
5•rawgabbit•28m ago•0 comments

Sudo for Windows

https://github.com/microsoft/sudo
2•luispa•30m ago•1 comments

Alan Kay – Programming and Scaling (2011) [video]

https://www.youtube.com/watch?v=YyIQKBzIuBY
2•alhazrod•33m ago•0 comments

The Rich Do Pay Lower Taxes Than You (2019)

https://www.nytimes.com/interactive/2019/10/06/opinion/income-tax-rate-wealthy.html
3•johnbarron•41m ago•2 comments

My Life Story in a Nutshell

https://jsavage.xyz/2026/04/11/im-back-heres-my-life-story-in-a-nutshell/
2•JSavageOne•43m ago•0 comments

Is Money Worth Moving For?

https://whattoaskfor.com/
2•ForgetToRead•46m ago•0 comments

Looking back on Stripe's payment API migration

https://jacobbrazeal.wordpress.com/2026/04/19/review-stripes-payments-apis/
4•tibbar•54m ago•1 comments

Iowa went all-in on school choice

https://www.npr.org/2026/04/19/nx-s1-5683199/education-school-choice-iowa-students-charter-school...
2•freeopinion•57m ago•0 comments

Nostr-powered E2EE Collaboration platform powered by Marmot Protocol

https://www.lemonwire.work/
2•jdbohrman•59m ago•0 comments

How to get Hired at a Startup (as a student)

https://twitter.com/robechun/status/2045974706470404589
2•altrum•1h ago•0 comments

Show HN: Clone, a small Rust VMM, forks VMs in under 20ms via CoW

https://github.com/unixshells/clone
3•rasengan•1h ago•0 comments

Fractal Compression

http://janosmeny.com/blog/fractal-compression/index.html
3•janos95•1h ago•1 comments

Slava's Monoid Zoo

https://factorcode.org/slava/monoids.html
2•luu•1h ago•0 comments

Nicholas Pardini on real inflation vs. CPI and financial repression [video]

https://www.youtube.com/watch?v=qcZEj88sQp4
4•telotortium•1h ago•0 comments

Show HN: Brygga – A modern, fast, feature-rich IRC client for macOS

2•EldrRoot•1h ago•0 comments

Arm Helium Technology Reference Book (2023) [pdf]

https://github.com/arm-education/Arm-Helium-Technology/blob/main/HeliumTechnology_referencebook.pdf
2•my123•1h ago•0 comments

To Dissect a Mockingbird: A Graphical Notation for the Lambda Calculus (1996)

https://dkeenan.com/Lambda/index.htm
4•pizza•1h ago•0 comments

Vercel April 2026 security incident

https://vercel.com/kb/bulletin/vercel-april-2026-security-incident
2•lox•1h ago•1 comments

The game was rigged by the one man hired to prevent rigging

https://twitter.com/Jeremybtc/status/2045561556650639664
2•delichon•1h ago•0 comments