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

x/valibot/src/methods/pipe/pipeAsync.ts>SchemaWithPipeAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
type alias SchemaWithPipeAsync
import { type SchemaWithPipeAsync } from "https://deno.land/x/valibot@v1.0.0-beta.2-to-json-schema/src/methods/pipe/pipeAsync.ts";

Schema with pipe async type.

Type Parameters

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