You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The variables parameter is not used, and since it's not prefixed with _, compiling the code with TS produces errors when noUnusedParameters is set to true.
Note - I'm skipping putting together an example, since this has already been reported. Hope that's OK!
Which packages are impacted by your issue?
@graphql-codegen/typescript-graphql-request
Describe the bug
The
defaultWrapper
generated by this package looks like this:The
variables
parameter is not used, and since it's not prefixed with_
, compiling the code with TS produces errors when noUnusedParameters is set to true.Note - I'm skipping putting together an example, since this has already been reported. Hope that's OK!
Your Example Website or App
https://github.com/dotansimha/graphql-code-generator-community/pull/512/files#r1431039116
Steps to Reproduce the Bug or Issue
noUnusedParameters
set to trueExpected behavior
TS shouldn't produce errors regardless of the value of noUnusedParameters
Screenshots or Videos
No response
Platform
graphql
version: [e.g. 16.3.0]@graphql-codegen/*
version(s):Codegen Config File
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: