Type guard to check if a given value is a Standard Schema V1 object.
The type of input validated by this schema.
The type of output produced after validation.
The value to test.
True if the schema conforms to the Standard Schema interface.
A Standard Schema object is expected to have a ~standard property with a validate function. This guard does NOT check for JSON schema support.
~standard
validate
if (isStandardSchema(mySchema)) { const result = mySchema["~standard"].validate(input);} Copy
if (isStandardSchema(mySchema)) { const result = mySchema["~standard"].validate(input);}
Type guard to check if a given value is a Standard Schema V1 object.