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

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

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
interface BaseTransformation
Re-export
import { type BaseTransformation } from "https://deno.land/x/valibot@1.0.0-beta.0-to-json-schema/src/types/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: (...args: any[]) => BaseTransformation<any, any, BaseIssue<unknown>>

The transformation reference.

readonly
async: false

Whether it's async.

readonly
optional
~types: { readonly input: TInput; readonly output: TOutput; readonly issue: TIssue; } | undefined

The input, output and issue type.

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

Transforms known input values.