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

Remove type inference recursion limit #33

Merged
merged 4 commits into from
May 9, 2024

Conversation

daniel-chambers
Copy link
Collaborator

@daniel-chambers daniel-chambers commented May 8, 2024

This PR removes the recursion limit placed on the type inference algorithm. Previously it could go 20 steps deep and then would throw an error. This limit was hit when inferring types when using the kubernetes API as a sample. Now we're removing it, as it was originally a debugging aid to quickly prevent "infinite" loops. In the current implementation it is not possible to get infinite loops as we'll have a stack overflow if we end up (through buggy behaviour) in an "infinite" loop.

The PR also updates the TypeScript SDK depended on to the latest version: v4.6.0

@daniel-chambers daniel-chambers self-assigned this May 8, 2024
Copy link

@sordina sordina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@daniel-chambers daniel-chambers merged commit 53ae387 into main May 9, 2024
6 checks passed
@daniel-chambers daniel-chambers deleted the daniel/remove-recursion-limit branch May 9, 2024 00:21
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.

2 participants