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

x/valibot/src/index.ts>BaseTransformationAsync

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface BaseTransformationAsync
implements Omit<BaseTransformation<TInput, TOutput, TIssue>, "reference" | "async" | "_run">
Re-export
import { type BaseTransformationAsync } from "https://deno.land/x/valibot@v0.35.0/src/index.ts";

Base transformation async type.

Type Parameters

TInput
TOutput
TIssue extends BaseIssue<unknown>

Properties

readonly
reference: FunctionReference<any[], BaseTransformation<unknown, unknown, BaseIssue<unknown>> | BaseTransformationAsync<unknown, unknown, BaseIssue<unknown>>>

The transformation reference.

readonly
async: true

Whether it's async.

Methods

_run(dataset: TypedDataset<TInput, never>, config: Config<TIssue>): Promise<Dataset<TOutput, TIssue>>

Transforms known input.