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/

3D Model Weights: Explore HuggingFace's top models in 3D

https://franciscocarloserra.github.io/3d-model-weights/
1•FranciscoCarlos•40s ago•0 comments

Anomie

https://en.wikipedia.org/wiki/Anomie
1•tosh•3m ago•0 comments

Haxy: A Git forge that stores issues in the repo

https://try.haxy.net/haxy:haxy
1•ilreb•7m ago•0 comments

Adding Trust to Linux Based OSes – Lennart Poettering Las 2026 [video]

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

Fourier Cat

https://www.reddit.com/r/mathematics/comments/1x5ma5p/fourier_cat/
2•taubek•8m ago•0 comments

Wolf 359 (Radio Drama)

https://wolf359.fm
2•alentred•8m ago•0 comments

Automattic Applies for a .php Top-Level Domain

https://phpnews.net/php-tld-automattic
2•moebrowne•16m ago•0 comments

Knowledge just moved out of the GPU (Engram architecture overview)

https://three.dev/blog/knowledge-just-moved-out-of-the-gpu
1•edrevo•17m ago•0 comments

Ubuntu 26.10 Release Notes

https://documentation.ubuntu.com/release-notes/26.10/
1•pantalaimon•20m ago•0 comments

Ask HN: Moving Away from O365 / Google Workspace

1•dmje•21m ago•0 comments

The Loudness War [video]

https://www.youtube.com/watch?v=3Gmex_4hreQ
1•nomilk•21m ago•0 comments

Show HN: I built a rogue AI game, then let five AI models play it

https://www.viberant.app/view.php?id=82
1•kgtrip•21m ago•0 comments

LoRA: Low-Rank Adaptation of Large Language Models (2021)

https://arxiv.org/abs/2106.09685
1•tosh•22m ago•0 comments

The Secretive AWS Networking Lab

https://www.servethehome.com/inside-the-secretive-aws-networking-lab/
1•giuliomagnifico•22m ago•0 comments

Automate Your Call Center – Open-Source Run on Cloudflare Infra

https://mainbrella.com/blog/automate-your-call-center/
2•andrewfromx•25m ago•0 comments

https://github.com/mcotdev/kp.git

https://github.com/mcotdev/kp/tree/main
1•lygten•25m ago•1 comments

MoreWrong

https://morewrong.lol/
3•xiaoyu2006•25m ago•0 comments

60 fps on an ESP32-S3, in software

https://dekiengine.com/blog/esp32-s3-60fps/
1•khalidkhair•27m ago•0 comments

An independently hosted version of the PhotoCraft image editor

https://photocraft.design/
1•rankinzheng•28m ago•0 comments

The Harness Came Too Early – Scion is a bandaid to a larger issue

https://medium.com/@matt82198/the-harness-came-too-early-scion-is-a-bandaid-to-a-larger-issue-96b...
1•BerislavLopac•29m ago•0 comments

I let Claude hire its first employee. It chose a rock

https://www.reddit.com/r/ClaudeAI/comments/1x5uqak/i_let_claude_hire_its_first_employee_it_chose_a/
2•BerislavLopac•29m ago•0 comments

AI has changed my engineering leadership role

https://bjorg.bjornroche.com/management/AI-leadership/
1•BerislavLopac•30m ago•0 comments

Show HN: Composition – a daily Jezzball-like puzzle that turns into a Mondrian

https://playcomposition.com/board/10
1•spongyrug•31m ago•0 comments

Show HN: Bird – a Linux reminder app with an animated bird

https://bird.arjunshaji.me/
1•techyKerala•33m ago•0 comments

Is Hacker News still a good predictor of tech trends?

https://installmap.com/research/hacker-news-lead-over-google
3•jakobgreenfeld•33m ago•0 comments

Even Without AI, the Risk of a Biological Attack Is Terrifying

https://www.motherjones.com/politics/2026/09/ai-anthropic-pandemic-biological-war-scenario-bioter...
1•robtherobber•36m ago•0 comments

Show HN: Noble Gas

https://github.com/rorz/Noble-Gas
1•sarreph•36m ago•0 comments

Show HN: Reproducible failure drills for AI coding agents

https://github.com/second-time-is-a-bug-book/book-companion
1•rakeshmenon•39m ago•0 comments

The cost of getting a job today

https://weli.dev/blog/the-cost-of-getting-a-job-today/
6•weli•40m ago•0 comments

Some interesting internal documents from Anthropic litigation

https://www.lesswrong.com/posts/em5wnA7gpQSvfsuxQ/some-interesting-internal-documents-from-anthropic
3•gosen•40m ago•1 comments