Open some-user123 opened 1 year ago
My graphql schema defines custom types, e.g.
scalar date scalar uuid
Using nuxt-graphql-client fields with these types get typed as any.
any
Ideally, I can configure the mapping of these graphql types to javascript/typescript types (e.g. date to string, uuid to string).
date
string
uuid
Provide more type safety by typing unknown types as unknown instead of any (or make this a configuration option...)
unknown
No response
Your use case
My graphql schema defines custom types, e.g.
Using nuxt-graphql-client fields with these types get typed as
any
.The solution you'd like
Ideally, I can configure the mapping of these graphql types to javascript/typescript types (e.g.
date
tostring
,uuid
tostring
).Possible alternatives
Provide more type safety by typing unknown types as
unknown
instead ofany
(or make this a configuration option...)Additional information
No response