Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

StandardSchemaV1.Props

The Standard Schema properties interface.

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

§Type Parameters

§
Input = unknown
[src]
§
Output = Input
[src]

§Properties

§
readonly types?: Types<Input, Output> | undefined
[src]

Inferred types associated with the schema.

§
readonly validate: (value: unknown) => Result<Output> | Promise<Result<Output>>
[src]

Validates unknown input values.

§
readonly vendor: string
[src]

The vendor name of the schema library.

§
readonly version: 1
[src]

The version number of the standard.