StandardSchemaV1Props
interface in meocord/interface Since 4.1.0
interface StandardSchemaV1Props<Input = unknown, Output = Input>What a Standard Schema exposes under ~standard.
Members
version
readonly version: 1The version of the specification, which is 1.
vendor
readonly vendor: stringThe library the schema comes from.
validate
readonly validate: (
value: unknown,
) => StandardSchemaV1Result<Output> | Promise<StandardSchemaV1Result<Output>>Validates a value, synchronously or not.
types
readonly types?: { readonly input: Input; readonly output: Output } | undefinedType information only; never present at runtime.