Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/mod.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" | "_run">
Re-export
import { type BaseTransformationAsync } from "https://deno.land/x/valibot@v0.35.0/mod.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.