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

Comments

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

Accountability, APIs, and the United States of Surveillance

https://netapinotes.com/accountability-apis-and-the-united-states-of-surveillance/
1•johnathandos•1m ago•0 comments

Show HN: Quibble – Adversarial AI document review using Codex and Claude

https://github.com/mfelix/quibble
1•threekindwords•2m ago•0 comments

The Inevitable Future of Stablecoins

https://layerzero.network/blog/the-inevitable-future-of-stablecoins
1•lawrenceyan•8m ago•0 comments

NDP wants Carney to kill U.S. fighter jet contract in favour of Swedish aircraft

https://www.ctvnews.ca/politics/article/ndp-wants-carney-to-kill-us-fighter-jet-contract-in-favou...
2•c420•8m ago•1 comments

AI startup Adaption Labs raised $50M

https://fortune.com/2026/02/04/adaption-labs-50-million-seed-funding-emergence-captial-sara-hooke...
1•sudohalt•11m ago•0 comments

Show HN: BossDesk – Native macOS app to monitor your pg-boss job queues

https://github.com/thalesfp/boss-desk
1•thalesfp•12m ago•0 comments

What Does Steeling Do? Part 1

https://scienceofsharp.com/2018/08/22/what-does-steeling-do-part-1/
2•xeonmc•16m ago•0 comments

I built a 30KB language model that's never been wrong

https://pub.towardsai.net/i-built-a-30kb-language-model-thats-never-been-wrong-9386a82cdf31
1•nicklamb•19m ago•1 comments

What Spectroscopy Was to the 1800s, Embeddings Are to Science Now

https://mnky9800n.substack.com/p/what-spectroscopy-was-to-the-1800s
2•mnky9800n•19m ago•0 comments

3D Gaussian Splatting: Complete Guide to Services, Use Cases & Web Viewers

https://www.utsubo.com/blog/gaussian-splatting-guide
1•mxfh•19m ago•0 comments

Litestream Writable VFS

https://fly.io/blog/litestream-writable-vfs/
7•emschwartz•20m ago•8 comments

Student Loans May Get Discharged, Refunded for 200k as Key Deadline Passes

https://www.forbes.com/sites/adamminsky/2026/01/30/student-loans-may-get-discharged-and-refunded-...
1•toomuchtodo•21m ago•1 comments

I, Integrated Circuit

https://hackaday.com/2026/02/04/__trashed-28/
2•jnord•21m ago•0 comments

The Iron Heel

https://en.wikipedia.org/wiki/The_Iron_Heel
2•d_silin•22m ago•0 comments

Monolith OS Devblog for January 2026

https://monolith-project.org/blog/january-2026-update/
2•mrunix•23m ago•0 comments

The missing metric: Spec Coverage

https://benhouston3d.com/blog/spec-coverage
1•bhouston•24m ago•0 comments

From building client websites to launching my own SaaS

1•CheckAnalytic•24m ago•0 comments

A sandbox-safe macOS gateway for AI agents

https://github.com/ericblue/mac-agent-gateway
2•ericblue•25m ago•1 comments

Show HN: The Last Worm – Visualizing guinea worm eradication, from 3.5M to 10

https://echomoltinsson.github.io/last-worm/
1•onyx_writes•26m ago•0 comments

Everyone Is Stealing TV

https://www.theverge.com/streaming/873416/piracy-streaming-boxes
2•jnord•26m ago•0 comments

Paul Graham's Essays

https://paulgraham.com/articles.html
1•Brysonbw•26m ago•0 comments

Smart AI Policy Means Examing Its Real Harms and Benefits

https://www.eff.org/deeplinks/2026/02/smart-ai-policy-means-understanding-its-real-harms-and-bene...
1•hn_acker•27m ago•1 comments

From Anki to Kickstarter: The Making of Kanjideck

https://alt-romes.github.io/posts/2026-01-30-from-side-project-to-kickstarter-a-walkthrough.html
1•romes•27m ago•0 comments

Thought-Terminating Cliché

https://en.wikipedia.org/wiki/Thought-terminating_clich%C3%A9
1•walterbell•29m ago•0 comments

Lopaka: Create pixel-perfect graphics for embedded devices

https://lopaka.app/
1•flexagoon•29m ago•0 comments

Alphabet Q4 Earnings

https://blog.google/company-news/inside-google/message-ceo/alphabet-earnings-q4-2025/
2•aresant•30m ago•0 comments

The Internet of Babel

https://dolphinmade.com/blog/internet-of-babel/
1•rprend•31m ago•1 comments

As Rocks May Think

https://evjang.com/2026/02/04/rocks.html
3•modeless•33m ago•0 comments

School

https://bcanuntoldhistory.knowledge.ca
1•haileymmm•34m ago•0 comments

Claude Code patches to make it use less CPU

https://github.com/denysvitali/claude-code-patches
3•denysvitali•35m ago•0 comments