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

fix(graphqlsp): Fix unchecked index accesses #335

Merged
merged 3 commits into from
Jun 26, 2024

Conversation

kitten
Copy link
Member

@kitten kitten commented Jun 26, 2024

Updates tsconfig to enable noUncheckedIndexedAccess.

This is because there's several cases where it's hard to keep track of where the AST could have an optional entry in an array, that was previously assumed to exist, e.g. function arguments.
This enables this option then addresses all errors to eliminate crashes where we previously didn't check arrays on the TS AST.

@kitten kitten requested a review from JoviDeCroock June 26, 2024 10:48
Copy link

changeset-bot bot commented Jun 26, 2024

🦋 Changeset detected

Latest commit: f8bf406

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@0no-co/graphqlsp Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@JoviDeCroock JoviDeCroock merged commit 58f90f0 into main Jun 26, 2024
1 check passed
@JoviDeCroock JoviDeCroock deleted the fix/unchecked-index-access branch June 26, 2024 10:56
@github-actions github-actions bot mentioned this pull request Jun 26, 2024
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

Successfully merging this pull request may close these issues.

None yet

2 participants