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/

Ask HN: Due to spam on GitHub, what platforms can I move my projects?

1•ciwolex•43s ago•0 comments

BountyClaimer – A platform to post tasks and claim bounties

https://www.bountyclaimer.com/
1•Kevan12•1m ago•0 comments

Termination shock: trust our expert warnings on geoengineering's planetary risks

https://www.theguardian.com/commentisfree/2026/jun/19/solar-geoengineering-risk-to-planet-earth
1•thrance•7m ago•0 comments

How Lume Works: The Retrieval Primitives

https://deepbluedynamics.com/blog/lume-retrieval-primitives
1•kordlessagain•8m ago•0 comments

Efficient Data Logger Design

https://blog.atimin.dev/efficient-data-logger-design/
1•flipback•8m ago•0 comments

Bill Gates on Steve Jobs

https://twitter.com/TechEmails/status/2067975210884882820
1•ksec•10m ago•0 comments

Quantum Fisher Information in a Strange Metal

https://www.nature.com/articles/s41567-026-03298-0
1•bookofjoe•13m ago•0 comments

Magnitude: A coding agent that runs on open models

https://magnitude.dev
1•ksec•17m ago•0 comments

Revised Rules of Engineering Leadership

https://lethain.com/revised-rules-of-engineering-leadership/
1•zdw•19m ago•0 comments

Exosomes in nanomedicine: A cell-free therapeutic intervention in burn wounds

https://pmc.ncbi.nlm.nih.gov/articles/PMC11462792/
2•CharlesW•20m ago•0 comments

Mark Rober demonstrate relay attacks by "stealing a car" [video]

https://www.youtube.com/watch?v=h0EGCnBjTVk
2•kidbomb•21m ago•2 comments

The ability to regrow body parts is dormant in mammals, not lost

https://www.sciencedaily.com/releases/2026/06/260617032207.htm
4•nryoo•25m ago•0 comments

Was lucky to have tested fable 5 on chess-bench

https://www.chess-bench.com
1•hardikvora•27m ago•0 comments

Claude Guillemot, co-founder of Ubisoft, dies in plane crash

https://www.cbsnews.com/news/claude-guillemot-dies-age-69-ubisoft-assassins-creed/
1•iugtmkbdfil834•30m ago•0 comments

Floppy Disk Piracy: How Software Was Shared Before the Internet

https://comuniq.xyz/post?t=1280
2•01-_-•30m ago•1 comments

I improved my old project "ScoreCast" after 3 years

https://github.com/Costasgk/ScoreCast
1•costas_8•31m ago•1 comments

Dialog

https://dialog.org/
1•paulpauper•32m ago•0 comments

Are You in the Weights?

https://intheweights.com/p/peterboettke
1•paulpauper•32m ago•0 comments

Refik Anadol's Dataland, the first AI art museum

https://www.theartnewspaper.com/2026/06/18/refik-anadol-dataland-opens-los-angeles
2•paulpauper•32m ago•0 comments

AIPropel, AI-powered proposal generation for freelancers and agencies

https://www.aipropel.app/
1•omardakelbab1•33m ago•0 comments

Tangled: Knot-Stored Cob Proposal

https://leaflet.pub/p/did:plc:xasnlahkri4ewmbuzly2rlc5/3mmex6biynk2g
1•jeremyjh•34m ago•0 comments

That which is unique, breaks (2020)

https://map.simonsarris.com/p/that-which-is-unique-breaks
1•mmphosis•34m ago•0 comments

Shard your locks: benchmarking 6 Go cache designs

https://strebkov.dev/posts/shard-your-locks/
1•kluyg•35m ago•0 comments

You probably don't need event-driven architecture

https://openacme.org/blog/you-dont-need-event-driven
1•theanonymousone•35m ago•0 comments

I Stopped Trusting SSH Key Files

https://igorstechnoclub.com/why-i-stopped-trusting-ssh-key-files/
2•Tomte•39m ago•1 comments

How to Attract Bats to Your Backyard

https://www.batcon.org/bat-house-tips-tricks/
2•andsoitis•39m ago•1 comments

We built an internal data analytics agent

https://github.blog/ai-and-ml/github-copilot/how-we-built-an-internal-data-analytics-agent/
1•Brajeshwar•47m ago•0 comments

UHF X11: X11 Built for VisionOS and Apple Vision Pro

https://www.lispm.net/apps/uhf-x11/
17•zdw•48m ago•3 comments

Bun has an open PR adding shared-memory threads to JavaScriptCore

https://github.com/oven-sh/WebKit/pull/249
3•gr4vityWall•50m ago•0 comments

Lena Walks

https://www.nomadicmatt.com/
2•docscannerss•50m ago•0 comments