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/

Science (All of It) Did Peak in 2021

https://dynamicecology.wordpress.com/2026/01/15/science-all-of-it-really-did-peak-in-2021/
1•jruohonen•1m ago•0 comments

Computer Chronicles: AI (1984-1998)

https://computerchronicles.tv/#collection/ai
1•LeoPanthera•2m ago•0 comments

Pi is the most interesting agent harness

https://twitter.com/tobi/status/2018506396321419760
1•tosh•2m ago•0 comments

Nvidia: Contact with Anna's Archive Doesn't Prove Copyright Infringement

https://torrentfreak.com/nvidia-contact-with-annas-archive-doesnt-prove-copyright-infringement/
2•gslin•2m ago•0 comments

IRS taps HR, IT staff to handle returns amidst hiring crunch

https://www.govexec.com/management/2026/02/setting-agency-failure-amid-staffing-crunch-irs-taps-e...
2•ilamont•3m ago•0 comments

Why Building Alone Won't Solve the Housing Crisis

https://www.nytimes.com/2026/02/05/realestate/affordable-housing-insurance-studies.html
1•harambae•4m ago•0 comments

AI use in breast cancer screening cuts rate of later diagnosis by 12%

https://www.theguardian.com/science/2026/jan/29/ai-use-in-breast-cancer-screening-cuts-rate-of-la...
2•PaulHoule•5m ago•0 comments

Chinese Text Project

https://ctext.org/
1•surprisetalk•6m ago•0 comments

The Paperwork Reduction Act Doesn't Reduce Paperwork

https://www.factorysettings.org/p/the-paperwork-reduction-act-doesnt
1•surprisetalk•6m ago•0 comments

Moltbook Studio A single-file posting UI for Moltbook, AI agent social network

https://jongartmann.github.io/moltbook-studio
1•X-Loop3•6m ago•1 comments

Animated Engines

https://animatedengines.com/
2•surprisetalk•6m ago•0 comments

Birthrates Are Down. That Can Be a Sign of Progress

https://www.nytimes.com/2026/02/04/headway/birthrates-progress-newsletter.html
2•harambae•7m ago•0 comments

Stocks tumble for a third day, pushing the S&P 500 into the red for 2026

https://www.cnbc.com/2026/02/04/stock-market-today-live-updates.html
4•speckx•8m ago•0 comments

ISO 42001 Compliance for AI Agents

https://maybedont.ai/blog/iso-42001-compliance-runtime-controls/
1•mooreds•8m ago•0 comments

CSCI 49201: Functional Programming in OCaml

https://a-nikolaev.github.io/fp/
2•tosh•8m ago•0 comments

Notepad++ says Chinese government hackers hijacked software updates for months

https://techcrunch.com/2026/02/02/notepad-says-chinese-government-hackers-hijacked-its-software-u...
2•throwoutway•9m ago•1 comments

Block Blast for Life

https://apps.apple.com/gb/app/block-blast-tetriz/id6758530151
1•harshalone•10m ago•0 comments

Done Is Better Than Perfect

https://dontbreakprod.com/posts/done-is-better-than-perfect
1•dorkrawk•10m ago•0 comments

Claude Opus 4.6 extra usage promo

https://support.claude.com/en/articles/13613973-claude-opus-4-6-extra-usage-promo
2•rob•10m ago•0 comments

Ask HN: Why not have a news channel that views the world as deterministic?

1•amichail•11m ago•0 comments

Tried my AI skill generator. A 12-char typo beat a 3k-word spec

https://goldsborough.io/155-people-tried-to-teach-claude-their-jobs/
1•barefootsanders•12m ago•1 comments

Iready Discussion

https://old.reddit.com/r/AskTeachers/comments/1n6z34m/review_of_iready_curriculum/
1•marysminefnuf•14m ago•0 comments

Work in Progress Commits Are a Thing of the Past

https://www.rwx.com/blog/work-in-progress-commits-are-a-thing-of-the-past
1•dan_manges•14m ago•0 comments

Everything in Git: Running a Trading Signal Platform on NixOS

https://www.pxdynamics.com/blog/nixos-infrastructure
1•sambucini•16m ago•0 comments

Autistic girls less likely to be diagnosed, study says

https://www.theguardian.com/society/2026/feb/04/autism-women-men-diagnosis-childhood-adulthood
3•doener•19m ago•0 comments

Software Architecture and Philosophical Anthropology

https://michaelmangialardi.substack.com/p/software-architecture-and-philosophy
1•mikemangialardi•20m ago•0 comments

Ask HN: Does a CS degree increase or decrease job satisfaction as a programmer?

1•amichail•21m ago•1 comments

Show HN: Base.recipes – Version control for your recipes

https://base.recipes
2•alexsherrick•22m ago•1 comments

OpenClaw – Secure Storage of Password and API Keys Using HashiCorp Vault

https://twitter.com/sathish316/status/2019496552419717390
1•sathish316•22m ago•1 comments

Blender: Projects to Look Forward to in 2026

https://www.blender.org/development/projects-to-look-forward-to-in-2026/
1•oumua_don17•23m ago•0 comments