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
If you were to create a Record with 1 Unknown property, it seems to be ignored during validation:
Record
Unknown
import { Record, Unknown } from 'runtypes' const T = Record({ foo: Unknown }) console.info(T.check({})) // {}
However, static typing would find this an error:
import { Static } from 'runtypes' const test: Static<typeof T> = {} // Property 'foo' is missing in type '{}' but required in type '{ foo: unknown; }'. ts(2741)
The text was updated successfully, but these errors were encountered:
FWIW a related conversation is here: #113
Sorry, something went wrong.
Resolved in #113, please check it in v5.2.0.
v5.2.0
Undefined
No branches or pull requests
If you were to create a
Record
with 1Unknown
property, it seems to be ignored during validation:However, static typing would find this an error:
The text was updated successfully, but these errors were encountered: