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/

As I am suing the FBI, there may be interruptions to VitaSet LLC's operation

1•VitaSetLLC•1m ago•0 comments

TCI's Conference: The Anti-AI Portfolio

https://moatsandmultiples.substack.com/p/inside-tcis-conference-the-anti-ai
1•gmays•3m ago•0 comments

The action is off-balance sheet

https://www.marginpoints.com/issues/2026-06-24-the-action-is-off-balance-sheet
1•historian1066•3m ago•0 comments

Show HN: Natcho – Hide your MacBook’s Notch

https://taltools.site/natcho/
1•tal_alfi•3m ago•0 comments

Help Web Attackers Self Report

https://nochan.net/b/Internet-Crap/20260524-Help-Attackers-Self-Report/
1•Bender•4m ago•0 comments

Show HN: Δlchimist – Local-first AI persona engine for the browser (BYOK)

https://github.com/ayauho/alchimist
1•Ayauho•4m ago•0 comments

Linkerd 2.20, the Latest Release of the Cloud-Native Service Mesh, Arrives

https://cloudnativenow.com/features/linkerd-2-20-the-latest-release-of-the-cloud-native-service-m...
1•CrankyBear•9m ago•0 comments

Mycelium – codebase memory for AI coding agents

https://www.getmycelium.net/
2•KopikoCappu•11m ago•0 comments

Show HN: NowThis – OSS task manager for Nextcloud and iOS supporting subtasks

https://nowthis.app/
1•andrewjneumann•12m ago•0 comments

The Submarine

https://www.paulgraham.com/submarine.html
1•bilsbie•14m ago•0 comments

SkyPilot Endpoints: Production-Ready Inference on Every Cluster You Own

https://blog.skypilot.co/skypilot-endpoints/
7•rombr•15m ago•0 comments

The Hotness Curve (how age changes a woman's appeal)

https://aella.substack.com/p/the-hotness-curve-how-age-changes
1•SLHamlet•17m ago•0 comments

My Pele Agent Trading the World Cup Prediction Markets with AI and Crypto

https://avc.xyz/my-pele-agent
1•rmason•19m ago•0 comments

Claude Skill that turns the 37signals decision guide into a thinking partner

https://github.com/FeroVolar/Decision-Framework-Skill/
2•alianinfo•21m ago•1 comments

Field Note #009: The Asymmetric Exposure

https://www.azimuth.so/p/field-note-009-the-asymmetric-exposure
2•bennieblanco•25m ago•0 comments

Anthropic Accuses Alibaba of 'Illicitly' Accessing AI Models

https://www.bloomberg.com/news/articles/2026-06-24/anthropic-accuses-alibaba-of-illicitly-accessi...
4•htrp•26m ago•2 comments

Discovery of pneumonia subtypes could lead to tailored treatments

https://www.cam.ac.uk/research/news/discovery-of-severe-pneumonia-subtypes-could-lead-to-tailored...
2•gmays•27m ago•0 comments

Stop Programming in Markdown

https://structural.chat/articles/programming-in-markdown/
3•pchiusano•29m ago•0 comments

FilenQ – a native macOS file manager for power users

https://filenq.app
2•webseidon•30m ago•0 comments

RBX Insider

https://rbxinsider.net
2•fefw•30m ago•0 comments

Arcade Supports EMA

https://www.arcade.dev/blog/arcade-supports-ema/
2•gnanagurusrgs•31m ago•0 comments

Why SELECT * is bad for SQL performance (2020)

https://tanelpoder.com/posts/reasons-why-select-star-is-bad-for-sql-performance/
2•downbad_•31m ago•0 comments

Lost Confidence

https://longform.asmartbear.com/confidence/
2•herbertl•33m ago•0 comments

Benefit Is Not Authority

https://instantial.substack.com/p/benefit-is-not-authority
2•groverbennett•33m ago•0 comments

GitHub shouldn't be a dependency for publishing Rust on crates.io

https://infosec.exchange/@mttaggart/116806641273303255
9•speckx•34m ago•0 comments

Stanford graduates rethink their futures as AI transforms tech

https://www.bbc.com/news/articles/c872j82j2qyo
4•jethronethro•34m ago•0 comments

You can see T-Mobile's acquisitions by where its logins are hosted

https://neobotnet.com/blog/cotw-t-mobile
3•caffeinedoom•34m ago•3 comments

50% of LG and Samsung smart TV apps embed residential proxies

https://cyberinsider.com/50-of-lg-and-samsung-smart-tv-apps-embed-residential-proxies/
8•Cider9986•37m ago•3 comments

Reliability Is an Enforcement Problem

https://instantial.substack.com/p/reliability-is-an-enforcement-problem
2•groverbennett•37m ago•0 comments

Slate Auto's simple electric truck starts at $24,950

https://techcrunch.com/2026/06/24/slate-autos-radically-simple-electric-truck-starts-at-24950/
2•tjwds•40m ago•1 comments