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/

Ask HN: I spent personal money on game dev. How to turn stalled project around?

1•pixelbyindex•31s ago•0 comments

Skill Router – a local-first router for large agent skill libraries

https://github.com/torakagemusha-sudo/torafirma-skill-router
1•torafirma•45s ago•0 comments

Repairing a "for parts" Canon 7D Mark II

https://boxfish.be/posts/20250403-canon-7d-mark-ii-repair/
1•Tomte•1m ago•0 comments

International Olympiad in AI opens an official medal track for AI systems

https://ioai-official.org/ai-model-track/
1•ardivekar•3m ago•0 comments

New data suggests Scotland's 48% tax rate may be losing money

https://taxpolicy.org.uk/2026/07/25/scotland-48p-top-rate-laffer-curve/
1•ivewonyoung•4m ago•0 comments

How do I get recommended on ChatGPT?

2•ayinlaolajide•4m ago•0 comments

The logic behind C declarations (and the only correct way to declare pointers)

https://moffa.xyz/posts/the-logic-behind-c-declarations.html
1•altermetax•4m ago•0 comments

Canadian lab confirms process removes 90% of long-lived nuclear waste

https://www.autonocion.com/us/canadian-lab-nuclear-fuel/
1•signa11•4m ago•0 comments

Show HN: I built a transparent terminal wrapper for unobtrusive AI

https://github.com/emosenkis/terminai
1•emosenkis•5m ago•0 comments

WTA to require all players to undergo genetic sex testing

https://www.bbc.com/sport/tennis/articles/cn4nvwl9550o
1•bookofjoe•5m ago•0 comments

The Shift Project

https://shift.hks.harvard.edu/
1•mooreds•8m ago•0 comments

X-Ray Video of My Hand Made with Stuff Bought Off Amazon

https://www.youtube.com/watch?v=GnMKzTW4edY
2•skibz•10m ago•0 comments

Magnus Played at 71% Accuracy – Or Was It 88.7%?

https://stefeev.substack.com/p/magnus-played-at-71-accuracy-or-was
1•personnon•12m ago•0 comments

CEO

https://www.lerobit.com
1•akliluart•13m ago•0 comments

Show HN: A Chrome extension for LeetCode with context-aware hints and mock in

https://leetcopilot.dev
1•alexwang24•13m ago•0 comments

Why every drawing app still looks like MacPaint [video]

https://www.youtube.com/watch?v=TedaOiRo_Qg
1•gdubs•15m ago•1 comments

Show HN: CMEM – Persistent Memory for AI Coding Agents

https://cmem.ai
1•FabianBeiner•15m ago•0 comments

Eurobridges Spijkenisse

https://en.wikipedia.org/wiki/Eurobridges_Spijkenisse
1•taubek•17m ago•0 comments

Show HN: I built an app for learning and playing Bridge

https://bridge.brannon.online
3•braxxox•21m ago•0 comments

Amicro – Premium React Micro-Transitions and Interaction Components

https://amicro.vercel.app/
1•tilt•25m ago•0 comments

Show HN: Vitrin OS – An agent-first display server with per-app isolation

https://github.com/vitrin-os/vitrin-os
1•EsTharian•29m ago•0 comments

CSV Is Never Just CSV

https://immaschinenraum.blog/en/funpark/never-just-csv/
1•derverstand•29m ago•0 comments

Park by Robot at London Gatwick Airport

https://aerospaceglobalnews.com/news/gatwick-airport-robotic-parking-stanley-robotics/
5•agotterer•30m ago•0 comments

The Woman Who Stands to Inherit Much of Jeffrey Epstein's Fortune

https://www.nytimes.com/2026/07/26/business/jeffrey-epstein-girlfriend-estate.html
2•johnbarron•30m ago•0 comments

Show HN: OpenSmith – Trace LLM pipelines locally with trace, no cloud

https://github.com/shivnathtathe/opensmith
1•shivnathtathe•33m ago•1 comments

Viral Toyota Hiring Test with Ropes and a 6-Second Time Limit

https://www.jalopnik.com/2222693/story-behind-viral-toyota-hiring-test-ropes-six-second-time-limit/
3•cf100clunk•34m ago•0 comments

Show HN: Krouter, a compliant Kubernetes Gateway API implementation

https://krouter.cloud
1•linkdd•34m ago•0 comments

Renewables overtake coal as largest source of electricity generation

https://www.deccanherald.com/india/renewables-overtake-coal-as-worlds-largest-source-of-electrici...
1•johnbarron•35m ago•0 comments

Astrallist – Instant Grocery Management

https://www.astrallist.com/
2•kushthedevmm•36m ago•1 comments

This year, EU will again fine US tech more than it taxes public tech firms

https://twitter.com/levelsio/status/2080314960656159018
3•nozzlegear•37m ago•2 comments