Interface Props<Input, Output>

The Standard Schema properties interface.

interface Props<Input, Output> {
    types?: Types<Input, Output>;
    validate: ((value: unknown) => Result<Output> | Promise<Result<Output>>);
    vendor: string;
    version: 1;
}

Type Parameters

  • Input = unknown
  • Output = Input

Properties

types?: Types<Input, Output>

Inferred types associated with the schema.

validate: ((value: unknown) => Result<Output> | Promise<Result<Output>>)

Validates unknown input values.

vendor: string

The vendor name of the schema library.

version: 1

The version number of the standard.