Skip to content
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

Parsed code with type issues #345

Open
yangricardo opened this issue Oct 28, 2022 · 2 comments
Open

Parsed code with type issues #345

yangricardo opened this issue Oct 28, 2022 · 2 comments

Comments

@yangricardo
Copy link

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 :)

@aexol
Copy link
Collaborator

aexol commented Dec 13, 2022

If you could share this configuration that would be helpful

@elderapo
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants