import { type SchemaWithPipe } from "https://deno.land/x/valibot@v0.2.1-to-json-schema/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>, "_run" | "_types"> & { readonly pipe: TPipe; readonly _run: (dataset: Dataset<unknown, never>, config: Config<BaseIssue<unknown>>) => Dataset<InferOutput<LastTupleItem<TPipe>>, InferIssue<TPipe[number]>>; readonly _types?: { readonly input: InferInput<FirstTupleItem<TPipe>>; readonly output: InferOutput<LastTupleItem<TPipe>>; readonly issue: InferIssue<TPipe[number]>; }; }