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

z.StandardSchemaV1

The Standard Schema interface.

type StandardSchemaV1<Input = unknown, Output = Input> = {
readonly ~standard: StandardSchemaV1.Props<Input, Output>;
}
;

§Type Parameters

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

§Type

§
{
readonly ~standard: StandardSchemaV1.Props<Input, Output>;
}
[src]

§Interfaces

z.StandardSchemaV1.FailureResult

The result interface if validation fails.

z.StandardSchemaV1.Issue

The issue interface of the failure output.

z.StandardSchemaV1.PathSegment

The path segment interface of the issue.

z.StandardSchemaV1.Props

The Standard Schema properties interface.

z.StandardSchemaV1.SuccessResult

The result interface if validation succeeds.

z.StandardSchemaV1.Types

The Standard Schema types interface.

§Type Aliases

z.StandardSchemaV1.InferInput

Infers the input type of a Standard Schema.

z.StandardSchemaV1.InferOutput

Infers the output type of a Standard Schema.

z.StandardSchemaV1.Result

The result interface of the validate function.