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/

List of All Cognitive Biases

https://cognitivebiases.academy/
1•vladimirzh•2m ago•0 comments

Website behind widely shared fake election polls run by 21-year-old

https://www.theguardian.com/us-news/2026/aug/20/fake-polling-website-median-strategies
1•cdrnsf•3m ago•0 comments

DuckDB V2 PEG-based SQL parser

https://duckdb.org/2026/08/20/duckdb-20-peg-parser
2•karma_daemon•4m ago•0 comments

Isopolis – Behind the Scenes

https://sf.isopolis.city/dev.html
1•speckx•5m ago•0 comments

Show HN: SkyRoads (1993) reverse-engineered and ported natively to macOS

https://github.com/pedrocatalao/skyroads-mac
1•pedrocatalao•5m ago•0 comments

AI models' 'creative' output is becoming similar across providers

https://www.unite.ai/ai-models-creative-output-is-becoming-similar-across-providers/
1•50kIters•7m ago•0 comments

Helmholtz Resonator [video]

https://www.youtube.com/watch?v=bwTOQ_Ull9A
1•soupspaces•8m ago•1 comments

China launches biggest ever auto recall campaign over door handle safety

https://www.reuters.com/world/tesla-fix-software-millions-china-made-imported-evs-china-2026-08-21/
1•Propelloni•9m ago•0 comments

No IP? No Problem

https://ersei.net/en/blog/no-ip-no-problem
1•speckx•10m ago•0 comments

CRLF-Powered Desync Attacks: Beheading HTTP Streams

https://portswigger.net/research/crlf-powered-desync-attacks
2•chillax•11m ago•0 comments

Zenfmt is extremely fast 19 types document to Markdown converter written in Zig

https://insanai.github.io/zenfmt/
1•vikrantrathore•12m ago•0 comments

Shown HN : Idum Authenticator

https://apps.apple.com/us/app/idum-authenticator/id6801459486
1•SylvainMouquet•12m ago•0 comments

Rules vs. examples: what helps LLMs write correct SQL?

https://blog.getcassis.com/derivation-distance/
1•matthieu_bl•12m ago•0 comments

FCC Weakens U.S. Broadband Speed Goals to the Benefit of Elon Musk and Comcast

http://www.techdirt.com/2026/08/21/trump-fcc-weakens-u-s-broadband-speed-goals-to-the-benefit-of-...
1•beardyw•13m ago•0 comments

WaveHouse: Open-source real-time API gateway for ClickHouse

https://wavehouse.dev
1•thunderbong•13m ago•0 comments

Organizational attention is all you need

https://www.anthonyputignano.com/p/organizational-attention-is-all-you
1•anthonyp•13m ago•0 comments

The Oldest Living Things: 14 Ancient Organisms

https://www.atlasobscura.com/articles/where-to-find-the-oldest-living-things-in-the-world
1•sohkamyung•15m ago•0 comments

Nothing Doing

https://www.futilitycloset.com/2026/08/10/nothing-doing-12/
1•surprisetalk•16m ago•0 comments

Loss of Cultural Heritage in the Digital Age

https://cerebralrift.cc/2026/08/19/loss-of-cultural-heritage-in/
1•speckx•17m ago•0 comments

Show HN: Cloth Physics in 3D CSS

https://css.graphics/cloth/
1•rofko•18m ago•0 comments

Meta launches new vibe-coding platform, Pocket, in the US

https://www.neowin.net/news/meta-launches-new-vibe-coding-platform-pocket-in-the-us/
2•bundie•21m ago•1 comments

Show HN: Waltier – a generalized version of Cursor's S3 WAL

https://github.com/danthegoodman1/waltier
2•dangoodmanUT•21m ago•0 comments

Isaiah 7:14

https://en.wikipedia.org/wiki/Isaiah_7:14
1•chistev•23m ago•0 comments

Talk: The P2P chat from 1983 that a VPN brought back to life

https://en.andros.dev/blog/03a4ffb9/talk-the-p2p-chat-from-1983-that-a-vpn-brought-back-to-life/
1•andros•24m ago•0 comments

Grafana > Datadog

https://pocketarc.com/articles/i-replaced-datadog-with-grafana-loki-tempo-and-prometheus
1•pocketarc•26m ago•0 comments

The Prague of Deus Ex: Mankind Divided

https://www.killscreen.com/disjointed-prague-deus-ex-mankind-divided/
2•keiferski•27m ago•0 comments

Hotseat – Bid for the #1 public ranking spot

https://www.hotseat.gold
1•slightqn•29m ago•0 comments

Take-notes – turn a video, article or paper into one self-contained HTML note

https://github.com/davertor/take-notes
1•davertor•30m ago•0 comments

AI;DR or Don't be a meat proxy

https://theaspiringnerd.com/aidr-or-dont-be-a-meat-proxy/
1•speckx•30m ago•0 comments

A cyberpunk game where the hacks are real (except one district)

https://nightfabric.codesyo.com
2•sashyo•30m ago•1 comments