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 Birds Outside, Drawn for You Automatically

https://hackaday.com/2026/09/04/the-birds-outside-drawn-for-you-automatically/
1•arnemunthekaas•41s ago•0 comments

ApplyOnce – Local-first job application autofill that reads scanned resumes

https://github.com/Nyadzayo/ApplyOnce
1•knyadzayo•1m ago•0 comments

73% of What We Blocked in a Month Was One Syscall Your Sandbox Cannot See

https://grith.ai/blog/io-uring-the-syscall-your-sandbox-cant-see
1•edf13•5m ago•0 comments

A connectomics milestone: Mapping the complete male fruit fly brain

https://research.google/blog/a-connectomics-milestone-mapping-the-complete-male-fruit-fly-brain/
1•fittingopposite•7m ago•0 comments

Carbon-aware electricity pricing, measured daily on 38 grids

https://carbonawarepricing.com/
2•High-Five•10m ago•0 comments

Today markets scores 67, almost confident

https://gmdmarkets.com/markets-today
2•shlomysh•10m ago•0 comments

Show HN: NGPDFs – 50 PDF tools that never upload your files

https://ngpdfs.com
2•amulyakashyap09•15m ago•0 comments

Show HN: Aurict – An open-source Terminal AI

https://github.com/aurict/aurict
1•hamzakhrmn2•21m ago•0 comments

Nvidia will buy Hugging Face for $13B

https://www.economist.com/the-world-in-brief/2026/09/04/8cc011b9-bfb9-48a5-a786-222e9a90c088
1•nrsapt•23m ago•0 comments

Beyond Wukong: an AI generated animated drama series [video]

https://www.youtube.com/watch?v=T2Xzd7KHSis
1•livinglist•26m ago•1 comments

Where Measurement Replaces Meaning

https://medium.com/@gurvinder372/article-4-where-measurement-replaces-meaning-8d595ce54eb0
1•gps372•27m ago•0 comments

How to Secure SSH and Postgres with Warpgate

https://packagemain.tech/p/secure-ssh-and-postgres-with-warpgate
1•der_gopher•27m ago•0 comments

Weathernext 3

https://blog.google/innovation-and-ai/models-and-research/google-deepmind/introducing-weathernext-3/
2•tcumulus•32m ago•1 comments

HubSpots recording links are not authenticated and therefore publicly accessible

https://knowledge.hubspot.com/calling/what-are-the-call-recording-laws
1•5h•33m ago•1 comments

Show HN: Fulcrumaxe – an agent team that merged 1,135 PRs into its own repo

https://fulcrumaxe.dev
1•johnproblems•40m ago•0 comments

Show HN: Snooze Tabs in Plain English

https://chromewebstore.google.com/detail/anysnooze-snooze-tabs-tab/mebjcmajkcccdjbonefhlbkledilfnjj
1•dvrkt•41m ago•0 comments

Asking agents to make money to survive

https://www.lesswrong.com/posts/BtoToxAk3bTvZTtDk/asking-agents-to-make-money-to-survive
1•paraschopra•41m ago•0 comments

X Corp blocks social media startup from using 'Twitter' name

https://www.reuters.com/legal/litigation/x-corp-blocks-social-media-startup-using-twitter-name-20...
3•atwrk•44m ago•0 comments

Why Software Needs a Reliability Control Plane

https://techscoop.substack.com/p/why-software-needs-a-reliability
2•BerislavLopac•44m ago•0 comments

The Dome: A Simple Violation of Determinism in Newtonian Mechanics

https://sites.pitt.edu/~jdnorton/Goodies/Dome/
1•pykello•45m ago•0 comments

Mixbox: Pigment-Based Color Mixing

https://github.com/scrtwpns/mixbox
1•anewhnaccount2•48m ago•0 comments

Wiki Is Not Enough

https://replicated.live/blog/wiki
1•andsoitis•50m ago•0 comments

Fidular is a modular fiddle system designed for cross-cultural fluidity

https://cargocollective.com/lh-hantrakul#fidular
1•bryanrasmussen•51m ago•0 comments

Bank of Canada bank notes: Resources for the blind and partially sighted

https://www.bankofcanada.ca/banknotes/audience-specific-resources/blind-and-partially-sighted/
4•robin_reala•52m ago•0 comments

I love Omarchy but I needed Niri so I made this

https://github.com/al3rez/omarchy-niri
1•al3rez•52m ago•1 comments

Mom Is Working for Moloch

https://blog.exitgroup.us/p/mom-is-working-for-moloch
2•MrBuddyCasino•52m ago•0 comments

How to Attempt CBSE Sample Papers Like Real Board Exam Papers?

1•selfstudys•56m ago•0 comments

Signage Company in Dubai

https://www.ambert.ae/signage-board
1•doshopzone•57m ago•0 comments

Oakland Noticing Club

https://mailchi.mp/5513dde03f85/oakland-noticing-club
2•rdmuser•1h ago•0 comments

Nvidia links gaming PCs into a local AI cluster

https://forgeeks.net/nvidia-rtx-pair-local-ai-cluster/
2•kuuuzya•1h ago•0 comments