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/

Rivian explains why they won't adopt Apple CarPlay

https://www.macrumors.com/2026/05/28/rivian-software-chief-on-carplay/
1•andsoitis•27s ago•0 comments

Testing products on AI-generated buyers

https://www.bain.com/insights/synthetic-customers-earn-their-stripes/
1•paulpauper•1m ago•0 comments

Soft Serve and Soft Power

https://listomania.substack.com/p/soft-serve-and-soft-power
1•paulpauper•1m ago•0 comments

Secure GCP Auth in Bitbucket Pipelines

https://emilytburak.net/posts/bitbucket-pipes-gap-gcp-oidc/
1•mooreds•2m ago•0 comments

US State Privacy Legislation Tracker

https://iapp.org/resources/article/us-state-privacy-legislation-tracker
1•mooreds•4m ago•0 comments

White House aliens website is scary

https://www.whitehouse.gov/aliens/
1•brisket_bronson•5m ago•0 comments

Everything We Know About OpenAI's Planned iPhone Rival

https://www.macrumors.com/2026/05/29/everything-we-know-about-openai-iphone-rival/
2•andsoitis•5m ago•0 comments

Dusklight – GC Twilight Princess Decompiled

https://twilitrealm.dev/
1•shepherdjerred•5m ago•0 comments

The First Killer App

https://dl.acm.org/doi/pdf/10.1145/2509224
1•jruohonen•7m ago•0 comments

Why is this text everywhere? (Lorem Ipsum) [video]

https://www.youtube.com/watch?v=kL1PDqzqhM4
1•fanfantm•8m ago•0 comments

Zerostack v1.3.4 released – Lightweight Unix-like coding agent

https://github.com/gi-dellav/zerostack/releases/tag/v1.3.4
1•gidellav•11m ago•0 comments

768GB Intel Optane DIMMs to run 1T-parameter LLM with single GPU at 4tps

https://www.tomshardware.com/tech-industry/artificial-intelligence/enthusiast-runs-1-trillion-par...
1•walterbell•12m ago•0 comments

Fortunes of Anthropic's Seven Cofounders More Than Double to $16.6B Each

https://www.forbes.com/sites/richardnieva/2026/05/29/anthropics-cofounders-worth/
1•andsoitis•14m ago•0 comments

1M Ancient Greek fragments soon to be translated with the help of AI

https://www.oeaw.ac.at/en/news/austrian-academy-of-sciences-is-developing-the-ancient-greek-ai-ap...
1•janandonly•16m ago•0 comments

For targeted assassination using a ricin-Lorazepam combination

https://vostoktechnicalbureau.substack.com/p/for-targeted-assassination-using
1•VostocBuraeu•16m ago•0 comments

Mental Health Benefits

https://samatahealth.com/
2•paulsiccha•17m ago•0 comments

One engine, many tools – Introducing Rubydex

https://railsatscale.com/2026-05-12-one-engine-many-tools/
1•weaksauce•17m ago•0 comments

The Value of Science – Poincare [pdf]

https://academicweb.nd.edu/~powers/ame.60611/poincare.pdf
1•mindcrime•18m ago•0 comments

Sycophantic AI decreases prosocial intentions and promotes dependence

https://www.science.org/doi/10.1126/science.aec8352
1•jg0r3•19m ago•0 comments

Byte, Vol. 7, No. 8 (1982) [pdf]

https://archive.org/download/byte-magazine-1982-08/1982_08_BYTE_07-08_Logo.pdf
1•susam•20m ago•0 comments

Net 11 introduces runtime-native async replacing compiler-gen. state machines

https://learn.microsoft.com/en-us/dotnet/core/whats-new/dotnet-11/runtime
1•polskibus•22m ago•0 comments

Looking Back at Lewis and Clark

https://www.newyorker.com/magazine/2026/06/01/this-vast-enterprise-craig-fehrman-book-review
1•bookofjoe•22m ago•1 comments

LocalEmu, a free AWS emulator (fork of archived LocalStack)

https://github.com/localemu/localemu
2•CloudHackerFr•24m ago•0 comments

A disappearing Service Processor (2025)

https://oxide.computer/blog/cosmo-sp
2•mooreds•25m ago•0 comments

Frona v2026.5.5 – self-hosted personal AI assistant

https://github.com/fronalabs/frona/releases/tag/v2026.5.5
1•syncerx•26m ago•0 comments

The price of the Manhattan Project (2013)

https://blog.nuclearsecrecy.com/2013/05/17/the-price-of-the-manhattan-project/
1•downbad_•26m ago•0 comments

Transfer Emotions to VR Avatar via Brain with PiEEG XR

https://www.notebookcheck.net/For-VR-PiEEG-XR-measures-brain-activity-in-real-time.1311211.0.html
2•Christiangmer•30m ago•0 comments

The Cost of AI: From the Perspective of a Game Developer

https://alextardif.com/AI.html
1•coinfused•32m ago•0 comments

Who Has the Hardest Fist in China's AI Valuation Race?

https://crossingriver.substack.com/p/who-has-the-hardest-fist-in-chinas
2•ramimac•34m ago•0 comments

Saffron

https://ronaldperry.org/SaffronWebPage/index.html
1•giancarlostoro•34m ago•0 comments