graphql-editor / graphql-zeus

GraphQL client and GraphQL code generator with GraphQL autocomplete library generation ⚡⚡⚡ for browser,nodejs and react native ( apollo compatible )
https://graphqleditor.com/docs/tools/zeus/index/
MIT License
1.94k stars 105 forks source link

ZeusScalars do not change the typing of ValueTypes like they do with GraphQLTypes #392

Open Vectarian-Jorge opened 8 months ago

Vectarian-Jorge commented 8 months ago

I have some custom scalars I got from the Urigo/graphql-scalars library. These scalars, by default, have unknown typing as their input and output value when using the SDK generated by graphql-zeus.

The docs mention that I can define the typings via the ZeusScalars. And so I used them, but only the typing of the output value (the 'GraphQLTypes') has changed according to the return value of the decode function. encode's function parameter typing is not changing ValueTypes so the typing of the input values is still unknown.

How am I supposed to define the typings of ValueTypes?

Vectarian-Jorge commented 8 months ago

Something similar was asked in the issue #170, but got no response.