Replies: 1 comment
-
This feels similar to branding, for instance, here's Zod's implementation of that. Am I on the right track here with what you're proposing? Can you give some more motivation from the use-case perspective? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Idea
Allow for custom typescript types to be used for scalars.
Scalars often have additional constraints, however this isn't reflected on the type level when interacting with them
Example ScalarType
Generates
Ideally we could provide a custom typescript type rather than string (during generation)
Alternatively the generator could provide some constraints itself. There's likely a better way of doing this, but this is what I mean more concretely
Beta Was this translation helpful? Give feedback.
All reactions