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

x/valibot/src/types/index.ts>BaseTransformationAsync

The modular and type safe schema library for validating structural data 🤖
Latest
interface BaseTransformationAsync
implements Omit<BaseTransformation<TInput, TOutput, TIssue>, "reference" | "async" | "~run">
Re-export
import { type BaseTransformationAsync } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/types/index.ts";

Base transformation async type.

Type Parameters

TInput
TOutput
TIssue extends BaseIssue<unknown>

Properties

readonly
reference: (...args: any[]) => BaseTransformation<any, any, BaseIssue<unknown>> | BaseTransformationAsync<any, any, BaseIssue<unknown>>

The transformation reference.

readonly
async: true

Whether it's async.

readonly
~run: (dataset: SuccessDataset<TInput>, config: Config<BaseIssue<unknown>>) => Promise<OutputDataset<TOutput, BaseIssue<unknown> | TIssue>>

Transforms known input values.