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

Comments

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

Top DevOps Companies Hiring in 2025

https://devopsprojectshq.com/role/top-devops-companies-2025/
1•thomster•51s ago•0 comments

Artificial Intelligence for Quantum Computing

https://www.nature.com/articles/s41467-025-65836-3
1•jonbaer•1m ago•0 comments

Congressional lawmakers 47% pts better at picking stocks

https://www.nber.org/papers/w34524
1•mhb•4m ago•0 comments

Technocrats Are Getting Stupider

https://unherd.com/2025/12/why-the-great-reset-failed/
2•voxleone•6m ago•1 comments

GitHub to Codeberg Migration Script

https://github.com/LionyxML/migrate-github-to-codeberg
2•klaussilveira•8m ago•0 comments

Mistral launches Mistral 3, a family of open models

https://venturebeat.com/ai/mistral-launches-mistral-3-a-family-of-open-models-designed-to-run-on
2•mark_l_watson•9m ago•0 comments

Google Adds LLMs.txt to Search Developer Docs

https://www.seroundtable.com/google-adds-llms-txt-to-search-developer-docs-40533.html
1•speckx•9m ago•0 comments

Show HN: AI Reasoning Workflows – The 6 Skills That Improve Model Output

1•ai_updates•9m ago•1 comments

Show HN: C++ for Autonomous Driving – From Learning to Landing AV Jobs

https://github.com/0voice/Awesome-CPP-Autonomous-Driving
1•ysy63874•11m ago•0 comments

Why Ceph and Rook Is the Gold Standard for Bare-Metal Kubernetes

https://oneuptime.com/blog/post/2025-12-03-ceph-rook-standard-bare-metal-storage-pools/view
1•ndhandala•16m ago•0 comments

How LLM Inference Works

https://arpitbhayani.me/blogs/how-llm-inference-works/
2•manishpushkar•16m ago•0 comments

Show HN: Kaomojihub – find your favorite kaomoji, learn meaning and usage tips

https://kaomojihub.net
1•adsl731898322•17m ago•0 comments

Linux on the Desktop

https://medium.com/@fluxusars/linux-on-the-desktop-eddde1973e29
3•fluxusars•18m ago•1 comments

Acme Challenge for Persistent DNS TXT Record Validation

https://datatracker.ietf.org/doc/html/draft-sheurich-acme-dns-persist-01
1•birdculture•20m ago•0 comments

I built an open source app to travel the world with AI

https://www.trytimetraveller.com/
1•rohitghumare•21m ago•0 comments

Waymo's Self-Driving Cars Are Suddenly Behaving Like New York Cabbies

https://www.wsj.com/lifestyle/cars/waymo-self-driving-cars-san-francisco-7868eb2b
2•Brajeshwar•21m ago•0 comments

The Data on Self-Driving Cars Are Clear. We Have to Change Course

https://www.nytimes.com/2025/12/02/opinion/self-driving-cars.html
3•mhb•22m ago•0 comments

Antithesis Raises $105M Series A Led by Jane Street

https://technews180.com/funding-news/antithesis-raises-105m-series-a-led-by-jane-street/
3•subvocalize•23m ago•0 comments

Minimal MCP Server Library

https://github.com/rcarmo/umcp
1•rcarmo•24m ago•0 comments

Remember When the Information Superhighway Was a Metaphor?

https://www.wsj.com/opinion/remember-when-the-information-superhighway-was-a-metaphor-bdd5a383
1•Bostonian•25m ago•1 comments

Frozen neural network shows intention signal in early layers (10× faster)

https://github.com/Anima-Core/an1-meaning-engine
1•ryananimacore•26m ago•2 comments

Coding a Snowflake Generator

https://cloudfour.com/thinks/coding-a-snowflake-generator/
1•paulhebert•26m ago•0 comments

How AI is transforming work at Anthropic

https://www.anthropic.com/research/how-ai-is-transforming-work-at-anthropic
2•mybestday•26m ago•0 comments

Win free access to a DGX B200 for 24h

https://lab.enverge.ai/b200-challenge/
2•tudorizer•27m ago•0 comments

W3C Web Neural Net API Draft

https://www.w3.org/TR/webnn/
1•bcardarella•27m ago•0 comments

Ask HN: Which post on HN has the most comments?

3•uneven9434•27m ago•2 comments

Explore Colors as You See: OKLCH in CSS

https://palettt.com/blog/oklch-in-css-why-is-it-better-than-rgb-and-hsl
1•mustafaiste•28m ago•0 comments

GOG Patrons

https://www.gog.com/en/patrons
5•nallerooth•28m ago•0 comments

Accelerating VMware migrations with a factory model approach

https://www.technologyreview.com/2025/12/03/1128488/accelerating-vmware-migrations-with-a-factory...
1•fleahunter•33m ago•0 comments

Helldivers 2 devs slash install size from 154GB to 23GB

https://www.tomshardware.com/video-games/pc-gaming/helldivers-2-install-size-slashed-from-154gb-t...
22•doener•33m ago•8 comments