Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface BaseTransformationAsync
implements Omit<BaseTransformation<TInput, TOutput, TIssue>, "reference" | "async" | "~validate">
import { type BaseTransformationAsync } from "https://deno.land/x/valibot@1.0.0-beta.0-to-json-schema/src/types/transformation.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
~validate: (dataset: SuccessDataset<TInput>, config: Config<BaseIssue<unknown>>) => Promise<OutputDataset<TOutput, BaseIssue<unknown> | TIssue>>

Transforms known input values.