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/

Occasional (Halloween) paper: A mother gives her all

https://crookedtimber.org/2026/10/31/occasional-halloween-paper-a-mother-gives-her-all/
1•jruohonen•1m ago•0 comments

Ask HN: How are the other sciences using AI?

1•sroerick•2m ago•0 comments

Show HN: Quit everything to make one website

https://hellojomp.com/
1•hellojomp•2m ago•0 comments

I built one dollar clarity for just $1 try it

https://onedollarclarity.com/
1•DigitalSena•5m ago•0 comments

Should your SaaS use a PSP like Stripe or a MOR like Paddle?

https://proximal-forger-2c2.notion.site/Merchant-of-Record-vs-PSP-40176a015679811f8befc1fba62baf57
1•craigie•5m ago•0 comments

We Could Have Backdoored Bash

https://www.hacktron.ai/blog/hacking-gnu-savannah
1•acossta•5m ago•0 comments

Fallout 2: New Reno Area Design

https://chrisavellone.medium.com/fallout-2-new-reno-area-design-492c7eac34cd
1•CharlesW•6m ago•0 comments

GAAC: Lossless KV Cache Compression for Faster LLM Inference

https://arxiv.org/abs/2610.38210
1•wslh•6m ago•0 comments

Amoeba One Mini keychain phone

https://www.amoebaone.com
1•djhotlettuce•7m ago•0 comments

Gandalf: Extending SSD Lifespan for LLM KV Cache Offloading

https://arxiv.org/abs/2610.30791
1•wslh•8m ago•0 comments

NIS2 PMI: obblighi, scadenze e misure di sicurezza

https://cyberpath-hq.com/blog/guida-pmi/
1•ebalo55•10m ago•0 comments

A lightweight webhook security scanner

https://www.hookshield.co.uk/login
1•Robvanwiz•10m ago•1 comments

Breezy: A Distributed Version Control System with a Friendly UI

https://github.com/breezy-team/breezy
2•modinfo•11m ago•0 comments

The U.S. Investment Boom Arrives

https://www.wsj.com/opinion/economy-gdp-investment-boom-tariffs-inflation-donald-trump-071da0e2
1•kaycebasques•13m ago•0 comments

The Dream of Running a Shop

https://nik.art/the-dream-of-running-a-shop/
2•herbertl•16m ago•0 comments

The most insane FAKE musician

https://www.youtube.com/watch?v=FRoXKvD19Po
2•Betelbuddy•16m ago•0 comments

Fast Programming: Stop Thinking

https://www.codesimplicity.com/post/the-secret-of-fast-programming-stop-thinking/
2•ndr•18m ago•0 comments

mobile-agent: faster mobile app iteration for AI coding agents

https://mobileagent.dev
1•tilt•19m ago•0 comments

SBoM creator and Vulnerability scanner (Threatclaw.ai)

https://www.threatclaw.ai/free-tools
1•manindersinghx•19m ago•0 comments

A studio website where every page is one PostgreSQL query, served off a Mac Mini

https://studionull.io/
1•losmanzanos•21m ago•0 comments

Goldman says AI layoffs are leaving 'long-lasting' scar, like the last 40 years

https://fortune.com/2026/10/30/goldman-sachs-ai-layoffs-displaced-workers-older-workers-past-tech...
1•randycupertino•21m ago•1 comments

It's Time to Abandon the Classical Twin Method

https://jayjoseph22.substack.com/p/its-time-to-abandon-the-classical
1•runarberg•22m ago•0 comments

The mathematical sciences in an AI-enabled world

https://terrytao.wordpress.com/2026/10/31/the-mathematical-sciences-in-an-ai-enabled-world/
1•smilelamp•22m ago•0 comments

Can you reverse coronary plaque?

https://www.empirical.health/blog/can-you-reverse-coronary-plaque/
1•brandonb•22m ago•1 comments

Mandaeism

https://en.wikipedia.org/wiki/Mandaeism
2•Bluestein•24m ago•0 comments

AI Is a Coup by the Tasteless

https://sancho.bearblog.dev/ai-is-a-coup-by-the-tasteless/
4•sancho-panza•26m ago•1 comments

The Currency of the Journal Article Is Collapsing

https://www.theatlantic.com/ideas/2026/10/ai-journal-articles-writing/689186/
2•jonah•32m ago•0 comments

Snowflake feature policy rules can now return a custom error message [video]

https://www.youtube.com/shorts/Z4ktXgJr3T0
1•yanivleven•32m ago•0 comments

CVE-2026-116155: ImageMagick Memory Leak via Crafted XMP Profile-VR by Agilehunt

https://www.agilehunt.com/blog/imagemagick-cve-2026-116155-xmp-profile-parameter-entity-memory-leak
2•vikzsharma•33m ago•0 comments

Show HN: Public procedure records for doctors, with sources

https://getopenhealth.org/
2•kyisaiah47•36m ago•0 comments