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
as const + satisfies
Example - https://stackblitz.com/edit/stackblitz-starters-8zhuuy?file=types.ts,validate-schema.js. Run npm run generate-schema in console. Typescript compilation doesn't give any error but schema generation does:
npm run generate-schema
Type 'readonly X[]' does not satisfy the expected type 'X[]'. The type 'readonly X[]' is 'readonly' and cannot be assigned to the mutable type 'X[]'.
In Typescript using satisfies removes readonly modifier but not in schema compilation
satisfies
readonly
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Example - https://stackblitz.com/edit/stackblitz-starters-8zhuuy?file=types.ts,validate-schema.js.
Run
npm run generate-schema
in console.Typescript compilation doesn't give any error but schema generation does:
In Typescript using
satisfies
removesreadonly
modifier but not in schema compilationThe text was updated successfully, but these errors were encountered: