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

"Type instantiation is excessively deep and possibly infinite" on ZodParams.context #5

Closed
TheAppleFreak opened this issue Apr 16, 2023 · 0 comments · Fixed by #6
Closed

Comments

@TheAppleFreak
Copy link
Owner

TheAppleFreak commented Apr 16, 2023

Haven't seen this yet. Type inference for the following code is giving me the "type instantiation is excessively deep and possibly infinite" error in my current project with the following, very much not infinite typing (TypeScript 5.0.4, latest as of this writing):

const postMessageAction = new ZodParams({
    channel: z.string(),
    text: z.string()
});

let something: typeof postMessageAction.context = {
    
}

Not sure why this is, given as I don't think anything major changed between 2.0 and 3.0 in that regard? Gonna look into this further and see why it's happening here.

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 a pull request may close this issue.

1 participant