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

x/valibot/src/index.ts>BaseTransformation

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
interface BaseTransformation
Re-export
import { type BaseTransformation } from "https://deno.land/x/valibot@v0.35.0/src/index.ts";

Base transformation type.

Type Parameters

TInput
TOutput
TIssue extends BaseIssue<unknown>

Properties

readonly
kind: "transformation"

The object kind.

readonly
type: string

The transformation type.

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

The transformation reference.

readonly
async: false

Whether it's async.

readonly
optional
_types: { readonly input: TInput; readonly output: TOutput; readonly issue: TIssue; }

Input, output and issue type.

Methods

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

Transforms known input.