We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@graphql-codegen/typescript-react-apollo
TypeScript React Apollo's defaultBaseOptions object values are currently restricted to string:
defaultBaseOptions
string
graphql-code-generator-community/packages/plugins/typescript/react-apollo/src/config.ts
Line 245 in 0fea1a8
but they can be any number of data types.
n/a
try configuring an option with a non-string data type, i.e. ignoreResults:
ignoreResults
const config = { // ... defaultBaseOptions: { ignoreResults: true, } }
see TypeScript error:
Type 'boolean' is not assignable to type 'string'.
The object value should just be typed any:
any
{ [key: string]: any }
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Which packages are impacted by your issue?
@graphql-codegen/typescript-react-apollo
Describe the bug
TypeScript React Apollo's
defaultBaseOptions
object values are currently restricted tostring
:graphql-code-generator-community/packages/plugins/typescript/react-apollo/src/config.ts
Line 245 in 0fea1a8
but they can be any number of data types.
Your Example Website or App
n/a
Steps to Reproduce the Bug or Issue
try configuring an option with a non-string data type, i.e.
ignoreResults
:see TypeScript error:
Expected behavior
The object value should just be typed
any
:Screenshots or Videos
No response
Platform
@graphql-codegen/typescript-react-apollo
version: 4.0.0Codegen Config File
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: