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/

Secret of Orange Cats Revealed After 60-Year Search

https://www.sciencealert.com/secret-of-orange-cats-finally-revealed-after-60-year-search
1•bookofjoe•1m ago•0 comments

We're All Working for AI Now

https://medium.com/@mustafaydemir/were-all-working-for-ai-now-19353aa51e82
1•criexe•3m ago•0 comments

Podcast to Yoto Playlist Sync

https://github.com/veleek/PodcastToYoto
1•veleek•7m ago•1 comments

Agisoon.lol: Predictions of the Singularity

https://www.agisoon.lol/
1•JohnLocke4•8m ago•0 comments

Show HN: Listener – 100% on-device meeting notes for Mac ($5 once, no cloud)

https://getlistener.vercel.app/en
1•luizhcrs•8m ago•0 comments

IDC: Smartphone Shipments Set for Record 16.7% Drop in 2026

https://www.idc.com/resource-center/blog/smartphone-shipments-set-for-record-16-7-drop-in-2026-as...
1•GeekyBear•12m ago•0 comments

Testing database interactions in Golang

https://abdus.dev/posts/golang-database-tests/
1•abdusco•14m ago•0 comments

Ratcn – customizable Ratatui components you can try over SSH

https://ratcn.com/
2•gann_•18m ago•0 comments

Show HN: Teasr – Turn your product URL into a launch video

https://tryteasr.com/
1•deeshee•24m ago•0 comments

IDC: PC Sales Nosedived 20.1 Percent in Q3

https://www.thurrott.com/hardware/342655/idc-pc-sales-nosedived-20-1-percent-in-q3
2•GeekyBear•24m ago•0 comments

Doory open source canva alternative

https://doory.art
1•acley•25m ago•0 comments

High console prices push PlayStation and Xbox sales to new lows

https://www.polygon.com/game-console-sales-down-ai-component-crisis-ram/
1•GeekyBear•26m ago•0 comments

Sexually transmitted diarrhea: The infection that's becoming more drug resistant

https://www.kcra.com/article/sexually-transmitted-diarrhea-shingellosis-what-to-know/74092950
1•penskymaterial•29m ago•3 comments

Arrival Mind (children's book about AI risk – narrated)

https://www.youtube.com/watch?v=5GISvEfdbm4
1•hogwash•31m ago•0 comments

How much privacy should you expect at church?

https://baptistnews.com/article/how-much-privacy-should-you-expect-at-church/
1•thomasjb•33m ago•0 comments

Show HN: I built a macOS screensaver that reacts to AI coding agents

https://www.ascendaflow.com/waterline
1•emotf•33m ago•0 comments

Alien Crash Site

https://www.aliencrashsite.org
2•sebg•34m ago•0 comments

Dbt enables data analysts and engineers to transform their data

https://github.com/dbt-labs/dbt
2•kristianp•35m ago•0 comments

Show HN: Try Free Long-Term Memory for AI 50M-Token Window

https://github.com/corbenicai/galahad
3•Corbenic•35m ago•0 comments

Duplicity and Photo and Video Manager

https://www.worm-app.com/https://www.dupepit.com/
1•pajaserve•38m ago•0 comments

One of 20M Videos

https://www.youtube.com/watch?v=tqlvdPLsWD4
2•prathje•38m ago•1 comments

Show HN: Throw Alice and Bob into Sagittarius A*

https://github.com/steveking-gh/black-hole-lab
2•steve6390•44m ago•0 comments

We spent $1200 on a booth at HITEX 2026. Here's what we got

https://mazeez.dev/posts/hitex-2026/
1•mazeez•44m ago•0 comments

Borel jet extensions via higher categories and homotopy type theory

https://higher-borel-jets.grok.me/
1•measurablefunc•46m ago•0 comments

DuckDB Runs Recursive CTEs Faster

https://duckdb.org/2026/08/25/how-duckdb-runs-recursive-ctes-faster
2•kristianp•52m ago•0 comments

Hackers abuse Google Ads, Bing redirects to push Claude ClickFix attacks

https://www.bleepingcomputer.com/news/security/hackers-abuse-google-ads-bing-redirects-to-push-cl...
13•PicardManeuver•53m ago•4 comments

The Token Economy: Why Falling Token Prices Have Not Lowered AI Bills

https://papers.ssrn.com/sol3/papers.cfm?abstract_id=7562258
1•b-man•53m ago•0 comments

Montray – a tray icon for systemd service health

https://github.com/dimonomid/montray/
1•birdculture•54m ago•0 comments

Truck Parking Solver

https://truckslop.joshu.dev/
2•mbokinala•58m ago•0 comments

A General Capacity Frontier of Complex Networks

https://arxiv.org/abs/2610.09574
2•nickkunz•59m ago•1 comments