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

Comments

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

Families reeling, businesses suffering after ICE raided Ventura cannabis farms

https://www.latimes.com/california/story/2025-12-24/families-reeling-six-months-after-ice-raid-ca...
1•PaulHoule•6m ago•0 comments

US DOJ releases partially redacted documents on Operation Absolute Resolve

https://www.justice.gov/olc/media/1423306/dl
2•Agreed3750•8m ago•0 comments

Over the Edge: Death in Grand Canyon by Kenneth Field

https://www.arcgis.com/apps/webappviewer/index.html?id=9359a0790ffe4bc09edd6b9c17a43b90
1•thunderbong•8m ago•0 comments

A $2,500 full body scan said he was healthy. Then he had a catastrophic stroke

https://www.washingtonpost.com/health/2026/01/13/prenuvo-lawsuit-full-body-scan/
2•ThePhantom•16m ago•1 comments

Show HN: A slsqp solver WASM demo

https://slsqp-wasm.shuo23333.app/
1•shuoli84•17m ago•0 comments

Minimal Claude Code in 250 lines

https://github.com/1rgs/nanocode
1•yuedongze•17m ago•0 comments

Show HN: Axis – A systems programming language with Python syntax

https://github.com/AGDNoob/axis-lang
1•AGDNoob•18m ago•1 comments

Minor says ICE took his iPhone, later found in used-electronics vending machine

https://www.propublica.org/article/videos-ice-dhs-immigration-agents-using-chokeholds-citizens
8•spenvo•18m ago•1 comments

The Mole: Infiltrating North Korea [video]

https://www.youtube.com/watch?v=Sgq-_VNptSc
2•matousd•21m ago•0 comments

South Korea seeks death penalty for ex-president Yoon over martial law bid

https://www.cnbc.com/2026/01/14/south-korea-special-prosecutor-seek-death-penalty-former-presiden...
1•nodesocket•22m ago•0 comments

Show HN: Cymatica – Chladni Plate Simulator

https://www.cymatica.app/
1•_august•26m ago•0 comments

US approves sale of Nvidia's advanced H200 chips to China

https://www.bbc.com/news/articles/cg4erx1n04lo
2•tlyleung•30m ago•0 comments

QuickSend – Share Files Between Devices Without the Friction

http://quicksend.chat
1•foodhome•33m ago•1 comments

Wrapping my head around Gas Town

https://justin.abrah.ms/blog/2026-01-05-wrapping-my-head-around-gas-town.html
2•gmays•38m ago•1 comments

Bottom-up programming as the root of LLM dev skepticism

https://www.klio.org/theory-of-llm-dev-skepticism/
2•mkozlows•39m ago•0 comments

Show HN: Neutriva – A personalized health and wellness tracking assistant

https://neutriva.com/en/wellness-assistant
1•NoraWW•41m ago•0 comments

Medical Groups Will Try to Block Childhood Vaccine Recommendations

https://www.nytimes.com/2026/01/13/health/vaccine-schedule-children-kennedy.html
3•doener•50m ago•0 comments

Terry Tao: "LLMs Are Simpler Than You Think – The Real Mystery Is Why They Work" [video]

https://www.youtube.com/watch?v=ukpCHo5v-Gc
9•gmays•50m ago•0 comments

Starlink Users in Iran Get Free Internet Access, Nonprofit Says

https://www.nytimes.com/2026/01/13/technology/iran-starlink-elon-musk.html
4•doener•52m ago•2 comments

One Simple Arrow Changed Automobiles Forever [video]

https://www.wsj.com/video/series/on-the-news/how-one-simple-arrow-changed-automobiles-forever/C33...
1•fortran77•54m ago•0 comments

Qualcomm's RISC-Ventana Fusion

https://thechipletter.substack.com/p/qualcomms-risc-ventana-fusion
2•chmaynard•54m ago•0 comments

What's Ahead: Alien Processes, Domains, and Data Models

https://practicaldatamodeling.substack.com/p/whats-ahead-alien-processes-domains
1•gmays•56m ago•0 comments

Why IRC is better than Real Life

https://everything2.com/node/e2node/Why%20IRC%20is%20better%20than%20Real%20Life
3•jskherman•57m ago•0 comments

A new generation of Chinese companies is expanding around the world

https://www.economist.com/business/2026/01/13/a-new-generation-of-chinese-companies-is-expanding-...
3•petethomas•1h ago•0 comments

Southern New Zealand hospitals experienced major IT outage

https://www.rnz.co.nz/news/national/584026/public-service-association-says-southern-hospitals-exp...
3•billybuckwheat•1h ago•0 comments

What will enshittification of LLMs look like?

1•scoofy•1h ago•3 comments

An Updated Dentist Office Software Story

https://avc.xyz/an-updated-dentist-office-software-story
1•turadg•1h ago•1 comments

BioNTech Provides Strategic Business Update and Outlines 2026

https://investors.biontech.de/news-releases/news-release-details/biontech-provides-strategic-busi...
2•doener•1h ago•0 comments

How to Store the Web in S3

https://exa.ai/blog/exa-d
1•willbryk•1h ago•1 comments

Signal creator Moxie Marlinspike wants to do for AI what he did for messaging

https://arstechnica.com/security/2026/01/signal-creator-moxie-marlinspike-wants-to-do-for-ai-what...
5•abolishme•1h ago•0 comments