graphql-zeus icon indicating copy to clipboard operation
graphql-zeus copied to clipboard

Parsed code with type issues

Open yangricardo opened this issue 2 years ago • 2 comments

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:

image

Type 'undefined' cannot be used as an index type. at line 144, this message shows an issue about the operationName, that should be a defined string, buf actually is a string | 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 :)

yangricardo avatar Oct 28 '22 18:10 yangricardo

If you could share this configuration that would be helpful

aexol avatar Dec 13 '22 15:12 aexol

This seems to be the case when noUncheckedIndexedAccess is set to true in tsconfig.json.

elderapo avatar Mar 20 '23 21:03 elderapo