-
The existing As of today, the Svelte repo has 41.4k stars, so it should be around a while. :) |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 2 replies
-
@trevyn That sounds great! Would you start with a draft PR to help us? We don't know much about Svelte. |
Beta Was this translation helpful? Give feedback.
-
Sure, I'll take a look. For now, here's my quick-and-dirty |
Beta Was this translation helpful? Give feedback.
-
Ok, I did a reasonable draft of what the codegen output could look like, and verified it works:
This is just in straight JS, I'll need to add TypeScript. I also looked at the plugin code for |
Beta Was this translation helpful? Give feedback.
-
Moving to Discussions :) |
Beta Was this translation helpful? Give feedback.
-
Wouldn't it be more interesting here to promote |
Beta Was this translation helpful? Give feedback.
Wouldn't it be more interesting here to promote
TypedDocumentNode
as the "preferred" solution across the board? It's supported in more cases (like methods on theClient
), it is framework-agnostic, and it supports inferred types that are as good as with generated utilities (or in the case of React/Preact, generated wrapper hooks)