Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/valibot/src/index.ts>pipe

The modular and type safe schema library for validating structural data 🤖
Latest
function pipe
import { pipe } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/index.ts";

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

Returns

A schema with a pipeline.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

Returns

A schema with a pipeline.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

Returns

A schema with a pipeline.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

Returns

A schema with a pipeline.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

Returns

A schema with a pipeline.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

Returns

A schema with a pipeline.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>
TItem8 extends PipeItem<InferOutput<TItem7>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

The eighth pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>
TItem8 extends PipeItem<InferOutput<TItem7>, unknown, BaseIssue<unknown>>
TItem9 extends PipeItem<InferOutput<TItem8>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

The eighth pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>
TItem8 extends PipeItem<InferOutput<TItem7>, unknown, BaseIssue<unknown>>
TItem9 extends PipeItem<InferOutput<TItem8>, unknown, BaseIssue<unknown>>
TItem10 extends PipeItem<InferOutput<TItem9>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

The eighth pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>
TItem8 extends PipeItem<InferOutput<TItem7>, unknown, BaseIssue<unknown>>
TItem9 extends PipeItem<InferOutput<TItem8>, unknown, BaseIssue<unknown>>
TItem10 extends PipeItem<InferOutput<TItem9>, unknown, BaseIssue<unknown>>
TItem11 extends PipeItem<InferOutput<TItem10>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

The eighth pipe item.

The eleventh pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>
TItem8 extends PipeItem<InferOutput<TItem7>, unknown, BaseIssue<unknown>>
TItem9 extends PipeItem<InferOutput<TItem8>, unknown, BaseIssue<unknown>>
TItem10 extends PipeItem<InferOutput<TItem9>, unknown, BaseIssue<unknown>>
TItem11 extends PipeItem<InferOutput<TItem10>, unknown, BaseIssue<unknown>>
TItem12 extends PipeItem<InferOutput<TItem11>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

The eighth pipe item.

The eleventh pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>
TItem8 extends PipeItem<InferOutput<TItem7>, unknown, BaseIssue<unknown>>
TItem9 extends PipeItem<InferOutput<TItem8>, unknown, BaseIssue<unknown>>
TItem10 extends PipeItem<InferOutput<TItem9>, unknown, BaseIssue<unknown>>
TItem11 extends PipeItem<InferOutput<TItem10>, unknown, BaseIssue<unknown>>
TItem12 extends PipeItem<InferOutput<TItem11>, unknown, BaseIssue<unknown>>
TItem13 extends PipeItem<InferOutput<TItem12>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

The eighth pipe item.

The eleventh pipe item.

The thirteenth pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>
TItem8 extends PipeItem<InferOutput<TItem7>, unknown, BaseIssue<unknown>>
TItem9 extends PipeItem<InferOutput<TItem8>, unknown, BaseIssue<unknown>>
TItem10 extends PipeItem<InferOutput<TItem9>, unknown, BaseIssue<unknown>>
TItem11 extends PipeItem<InferOutput<TItem10>, unknown, BaseIssue<unknown>>
TItem12 extends PipeItem<InferOutput<TItem11>, unknown, BaseIssue<unknown>>
TItem13 extends PipeItem<InferOutput<TItem12>, unknown, BaseIssue<unknown>>
TItem14 extends PipeItem<InferOutput<TItem13>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

The eighth pipe item.

The eleventh pipe item.

The thirteenth pipe item.

The fourteenth pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>
TItem8 extends PipeItem<InferOutput<TItem7>, unknown, BaseIssue<unknown>>
TItem9 extends PipeItem<InferOutput<TItem8>, unknown, BaseIssue<unknown>>
TItem10 extends PipeItem<InferOutput<TItem9>, unknown, BaseIssue<unknown>>
TItem11 extends PipeItem<InferOutput<TItem10>, unknown, BaseIssue<unknown>>
TItem12 extends PipeItem<InferOutput<TItem11>, unknown, BaseIssue<unknown>>
TItem13 extends PipeItem<InferOutput<TItem12>, unknown, BaseIssue<unknown>>
TItem14 extends PipeItem<InferOutput<TItem13>, unknown, BaseIssue<unknown>>
TItem15 extends PipeItem<InferOutput<TItem14>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

The eighth pipe item.

The eleventh pipe item.

The thirteenth pipe item.

The fourteenth pipe item.

The fifteenth pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>
TItem8 extends PipeItem<InferOutput<TItem7>, unknown, BaseIssue<unknown>>
TItem9 extends PipeItem<InferOutput<TItem8>, unknown, BaseIssue<unknown>>
TItem10 extends PipeItem<InferOutput<TItem9>, unknown, BaseIssue<unknown>>
TItem11 extends PipeItem<InferOutput<TItem10>, unknown, BaseIssue<unknown>>
TItem12 extends PipeItem<InferOutput<TItem11>, unknown, BaseIssue<unknown>>
TItem13 extends PipeItem<InferOutput<TItem12>, unknown, BaseIssue<unknown>>
TItem14 extends PipeItem<InferOutput<TItem13>, unknown, BaseIssue<unknown>>
TItem15 extends PipeItem<InferOutput<TItem14>, unknown, BaseIssue<unknown>>
TItem16 extends PipeItem<InferOutput<TItem15>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

The eighth pipe item.

The eleventh pipe item.

The thirteenth pipe item.

The fourteenth pipe item.

The fifteenth pipe item.

The sixteenth pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>
TItem8 extends PipeItem<InferOutput<TItem7>, unknown, BaseIssue<unknown>>
TItem9 extends PipeItem<InferOutput<TItem8>, unknown, BaseIssue<unknown>>
TItem10 extends PipeItem<InferOutput<TItem9>, unknown, BaseIssue<unknown>>
TItem11 extends PipeItem<InferOutput<TItem10>, unknown, BaseIssue<unknown>>
TItem12 extends PipeItem<InferOutput<TItem11>, unknown, BaseIssue<unknown>>
TItem13 extends PipeItem<InferOutput<TItem12>, unknown, BaseIssue<unknown>>
TItem14 extends PipeItem<InferOutput<TItem13>, unknown, BaseIssue<unknown>>
TItem15 extends PipeItem<InferOutput<TItem14>, unknown, BaseIssue<unknown>>
TItem16 extends PipeItem<InferOutput<TItem15>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

The eighth pipe item.

The eleventh pipe item.

The thirteenth pipe item.

The fourteenth pipe item.

The fifteenth pipe item.

The sixteenth pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>
TItem8 extends PipeItem<InferOutput<TItem7>, unknown, BaseIssue<unknown>>
TItem9 extends PipeItem<InferOutput<TItem8>, unknown, BaseIssue<unknown>>
TItem10 extends PipeItem<InferOutput<TItem9>, unknown, BaseIssue<unknown>>
TItem11 extends PipeItem<InferOutput<TItem10>, unknown, BaseIssue<unknown>>
TItem12 extends PipeItem<InferOutput<TItem11>, unknown, BaseIssue<unknown>>
TItem13 extends PipeItem<InferOutput<TItem12>, unknown, BaseIssue<unknown>>
TItem14 extends PipeItem<InferOutput<TItem13>, unknown, BaseIssue<unknown>>
TItem15 extends PipeItem<InferOutput<TItem14>, unknown, BaseIssue<unknown>>
TItem16 extends PipeItem<InferOutput<TItem15>, unknown, BaseIssue<unknown>>
TItem17 extends PipeItem<InferOutput<TItem16>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

The eighth pipe item.

The eleventh pipe item.

The thirteenth pipe item.

The fourteenth pipe item.

The fifteenth pipe item.

The sixteenth pipe item.

The seventeenth pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>
TItem8 extends PipeItem<InferOutput<TItem7>, unknown, BaseIssue<unknown>>
TItem9 extends PipeItem<InferOutput<TItem8>, unknown, BaseIssue<unknown>>
TItem10 extends PipeItem<InferOutput<TItem9>, unknown, BaseIssue<unknown>>
TItem11 extends PipeItem<InferOutput<TItem10>, unknown, BaseIssue<unknown>>
TItem12 extends PipeItem<InferOutput<TItem11>, unknown, BaseIssue<unknown>>
TItem13 extends PipeItem<InferOutput<TItem12>, unknown, BaseIssue<unknown>>
TItem14 extends PipeItem<InferOutput<TItem13>, unknown, BaseIssue<unknown>>
TItem15 extends PipeItem<InferOutput<TItem14>, unknown, BaseIssue<unknown>>
TItem16 extends PipeItem<InferOutput<TItem15>, unknown, BaseIssue<unknown>>
TItem17 extends PipeItem<InferOutput<TItem16>, unknown, BaseIssue<unknown>>
TItem18 extends PipeItem<InferOutput<TItem17>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

The eighth pipe item.

The eleventh pipe item.

The thirteenth pipe item.

The fourteenth pipe item.

The fifteenth pipe item.

The sixteenth pipe item.

The seventeenth pipe item.

The eighteenth pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItem1 extends PipeItem<InferOutput<TSchema>, unknown, BaseIssue<unknown>>
TItem2 extends PipeItem<InferOutput<TItem1>, unknown, BaseIssue<unknown>>
TItem3 extends PipeItem<InferOutput<TItem2>, unknown, BaseIssue<unknown>>
TItem4 extends PipeItem<InferOutput<TItem3>, unknown, BaseIssue<unknown>>
TItem5 extends PipeItem<InferOutput<TItem4>, unknown, BaseIssue<unknown>>
TItem6 extends PipeItem<InferOutput<TItem5>, unknown, BaseIssue<unknown>>
TItem7 extends PipeItem<InferOutput<TItem6>, unknown, BaseIssue<unknown>>
TItem8 extends PipeItem<InferOutput<TItem7>, unknown, BaseIssue<unknown>>
TItem9 extends PipeItem<InferOutput<TItem8>, unknown, BaseIssue<unknown>>
TItem10 extends PipeItem<InferOutput<TItem9>, unknown, BaseIssue<unknown>>
TItem11 extends PipeItem<InferOutput<TItem10>, unknown, BaseIssue<unknown>>
TItem12 extends PipeItem<InferOutput<TItem11>, unknown, BaseIssue<unknown>>
TItem13 extends PipeItem<InferOutput<TItem12>, unknown, BaseIssue<unknown>>
TItem14 extends PipeItem<InferOutput<TItem13>, unknown, BaseIssue<unknown>>
TItem15 extends PipeItem<InferOutput<TItem14>, unknown, BaseIssue<unknown>>
TItem16 extends PipeItem<InferOutput<TItem15>, unknown, BaseIssue<unknown>>
TItem17 extends PipeItem<InferOutput<TItem16>, unknown, BaseIssue<unknown>>
TItem18 extends PipeItem<InferOutput<TItem17>, unknown, BaseIssue<unknown>>
TItem19 extends PipeItem<InferOutput<TItem18>, unknown, BaseIssue<unknown>>

Parameters

schema: TSchema

The root schema.

The second pipe item.

The fourth pipe item.

The seventh pipe item.

The eighth pipe item.

The eleventh pipe item.

The thirteenth pipe item.

The fourteenth pipe item.

The fifteenth pipe item.

The sixteenth pipe item.

The seventeenth pipe item.

The eighteenth pipe item.

The nineteenth pipe item.

Adds a pipeline to a schema, that can validate and transform its input.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>>
TItems extends PipeItem<InferOutput<TSchema>, InferOutput<TSchema>, BaseIssue<unknown>>[]

Parameters

schema: TSchema

The root schema.

...items: TItems

The pipe items.

Returns

A schema with a pipeline.