-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
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
Type error: FetcherParams.variables declared as string but actually passed as object #1632
Comments
oh my bad, i see what you're saying. this is an issue from the typescript migration in january. just need to update it, |
need to make sure `variables` is typed as any, since it comes in as an object literal, not a string. resolves #1632
need to make sure `variables` is typed as any, since it comes in as an object literal, not a string. resolves #1632
will release this shortly! |
@acao Did you release this already? |
sorry no, there are issues in the pipeline. we have to do some heavy lifting to keep cutting graphiql 1 releases from the main branch now, and I'm going to be away from work on vacation (starting today), so it will be a few PRs and some time until we can issue another graphiql 1 release |
GraphiQL 1.0.3 declares
FetcherParams.variables
as string, see GraphiQL.tsx#L75, presumably containing the string value from the variables editorHowever in a custom fetcher I actually get a Javascript object (which seems to be intended).
You can easily reproduce this with:
The text was updated successfully, but these errors were encountered: