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

x/valibot/src/methods/index.ts>SchemaWithPipe

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

Schema with pipe type.

Type Parameters

TPipe extends [BaseSchema<unknown, unknown, BaseIssue<unknown>>, ...PipeItem<any, unknown, BaseIssue<unknown>>[]]
definition: Omit<FirstTupleItem<TPipe>, "~standard" | "~run" | "~types"> & { readonly pipe: TPipe; readonly ~standard: StandardSchemaProps<InferInput<FirstTupleItem<TPipe>>, InferOutput<LastTupleItem<TPipe>>>; readonly ~run: (dataset: UnknownDataset, config: Config<BaseIssue<unknown>>) => OutputDataset<InferOutput<LastTupleItem<TPipe>>, InferIssue<TPipe[number]>>; readonly ~types?: { readonly input: InferInput<FirstTupleItem<TPipe>>; readonly output: InferOutput<LastTupleItem<TPipe>>; readonly issue: InferIssue<TPipe[number]>; } | undefined; }