graphql-zeus
graphql-zeus copied to clipboard
Parsed code with type issues
Hi,
Recently i discovered this lib, that sounds awesome, but i am have facing issues about the types.
I have found a workaround by placing a comment // @ts-nocheck
at the start of file, but this seems not ideal for a type safe project.
Here some examples:
Type 'undefined' cannot be used as an index type.
at line 144, this message shows an issue about theoperationName
, that should be a definedstring
, buf actually is astring | undefined
. Similar errors with not used variables, also are displayed.
I know that's it a personal configuration of tsconfig, but it appears to be improved :)
If you could share this configuration that would be helpful
This seems to be the case when noUncheckedIndexedAccess
is set to true
in tsconfig.json
.