We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm trying to turn into types a very basic schema:
const responseSchema = { type: 'object', additionalProperties: false, properties: { success: { type: 'boolean' }, statusCode: { type: 'number' }, message: { type: 'string' } }, required: ['success', 'statusCode', 'message'] } as const; type Response = FromSchema<typeof responseSchema>;
Which resolves as any.
any
When I try to build it, it fails with TS2589: Type instantiation is excessively deep and possibly infinite. error.
TS2589: Type instantiation is excessively deep and possibly infinite.
The text was updated successfully, but these errors were encountered:
FYI: rolling back to v2.8 fixes the issue.
Sorry, something went wrong.
@mrded Yes it's a known issue, will be working on this tomorrow. Closing this as it's a duplicate of #144
No branches or pull requests
I'm trying to turn into types a very basic schema:
Which resolves as
any
.When I try to build it, it fails with
TS2589: Type instantiation is excessively deep and possibly infinite.
error.The text was updated successfully, but these errors were encountered: