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/

The Specification Is Not a Document

https://aicoding.leaflet.pub/3mtgs36dnq22o
1•chadfowler•37s ago•0 comments

I treat my AI coding agents as subcontractors

https://karavox.org/devlog/agents-as-subcontractors.html
1•lukasznowak•2m ago•0 comments

GitHub blames 8-hour outage on autoscaling fail and VS Code retry storm

https://www.theregister.com/saas/2026/08/19/github-blames-8-hour-outage-on-autoscaling-fail-and-v...
1•stevehipwell•4m ago•0 comments

Button Stealer

https://anatolyzenkov.com/stolen-buttons/button-stealer
1•surprisetalk•4m ago•0 comments

Fuji: A minimal harness to deploy agents at scale

https://github.com/paradise-runner/fuji
2•dividedcomet•4m ago•1 comments

Proxima Fusion Raises €411M to Build Europe's Commercial Fusion Champion

https://www.proximafusion.com/press-news/proxima-fusion-raises-eu411-million-to-build-europes-com...
1•robin_reala•5m ago•0 comments

For no apparent reason Oral-B removed flossing from their app

https://blog.jgc.org/2026/08/for-no-apparent-reason-oral-b-removed.html
2•jgrahamc•7m ago•0 comments

The Pattern Cards: How the Spec Became the Source Code

https://kelright.com/blog/the-pattern-cards
2•orbOfOrthanc•7m ago•0 comments

Moderna, Merck cancer vaccine shows promise in late-stage phase three trial

https://www.cnbc.com/2026/08/19/moderna-merck-cancer-vaccine-shows-initial-late-stage-melanoma-da...
7•dominikposmyk•11m ago•0 comments

Show HN: JobEasyApply – AI job auto-applier for LinkedIn, Greenhouse and Lever

https://jobeasyapply.com
3•workplace_1•12m ago•1 comments

GPS-01: A simplified interactive explainer of how GPS works

https://gps-01.dmytro.fyi/
3•dimuuu•12m ago•0 comments

Does ChatGPT recommend your local business? I measured it

https://localseen.ai/
2•iskifogl•13m ago•0 comments

Carno.js – a Nest-style application framework for Bun

https://github.com/carnojs/carno.js
3•l-crispr•14m ago•0 comments

California regulators restrict by 70% what replacement tires you can buy

https://www.kcra.com/article/san-joaquin-county-maintenance-district-fee-increase/73470859
2•ytNumbers•15m ago•1 comments

PulseMarkt – An AI-powered marketplace for discovering trending products

https://www.pulsemarkt.com/
2•scottchecola•16m ago•0 comments

You Don't Need a Fancy IDP to Build Platform Self-Service in 2026

https://newsletter.masterpoint.io/p/you-don-t-need-a-fancy-idp-to-build-self-service-in-2026
3•mooreds•17m ago•0 comments

"This is how great powers decline" [video]

https://www.youtube.com/watch?v=s6qIYufgvg8
2•mooreds•18m ago•0 comments

Firefox 154.0 Released

https://www.firefox.com/en-US/firefox/154.0/releasenotes/
5•DemiGuru•18m ago•0 comments

Langfuse v4: agent evals and traces rebuilt on one immutable ClickHouse table

https://langfuse.com/changelog/2026-08-17-langfuse-v4
2•JannikM•18m ago•0 comments

The Bleep – a maintained successor to The Fuck

https://github.com/stamparm/thebleep
2•stamparm•21m ago•0 comments

Magic Squares, Cubes, Hypercubes: Origins, Recent Advances [video]

https://www.youtube.com/watch?v=of8Maaq1Fsg
2•ttctciyf•21m ago•1 comments

The Price of Being Useful

https://thinkingrock.substack.com/p/the-price-of-being-useful
4•7777777phil•21m ago•0 comments

When str.lower() is a security vulnerability in Python

https://sethmlarson.dev/when-str-lower-is-a-security-vulnerability
2•SethMLarson•22m ago•0 comments

Can an LLM make a feature-length movie on its own?

https://www.lesswrong.com/posts/24RKHEkwgZ6Hm6ygY/can-an-llm-make-a-feature-length-movie-on-its-own
2•mchinen•22m ago•0 comments

The most frequent entity in my own documents is me

https://tidymacapp.com/most-frequent-entity-is-me
2•sdiazthomas•23m ago•0 comments

Why Sheep Need Pigs in Sheepdog's Clothing

https://www.overcomingbias.com/p/why-sheep-need-pigs-in-sheepdogs
1•surprisetalk•25m ago•0 comments

Three years of writing a browser engine, in 50 posts

https://codemusings.nl/@jaytaph/p/9A6TCthSHwFEZwGbzSumbN
1•jaytaph•28m ago•0 comments

AI acts as ideological chameleon and deepen political polarization, study find

https://agencia.fapesp.br/artificial-intelligence-acts-as-an-ideological-chameleon-and-may-deepen...
3•DeepLogin•29m ago•1 comments

DiploBench – watching LLMs play Diplomacy

https://diplobench.com
1•laverya•29m ago•1 comments

Where are AI Agents going?

https://designislove.substack.com/p/will-ai-agents-become-the-internets
1•salman10•29m ago•0 comments