Skip to main content
Home

Built and signed on GitHub Actions

The modular and type safe schema library for validating structural data 🤖

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a week ago (1.1.0)
interface BaseTransformation

Base transformation interface.

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
~run: (
config: Config<BaseIssue<unknown>>,
) => OutputDataset<TOutput, BaseIssue<unknown> | TIssue>

Transforms known input values.

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

The input, output and issue type.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@valibot/valibot

Import symbol

import { type BaseTransformation } from "@valibot/valibot";
or

Import directly with a jsr specifier

import { type BaseTransformation } from "jsr:@valibot/valibot";

Add Package

pnpm i jsr:@valibot/valibot
or (using pnpm 10.8 or older)
pnpm dlx jsr add @valibot/valibot

Import symbol

import { type BaseTransformation } from "@valibot/valibot";

Add Package

yarn add jsr:@valibot/valibot
or (using Yarn 4.8 or older)
yarn dlx jsr add @valibot/valibot

Import symbol

import { type BaseTransformation } from "@valibot/valibot";

Add Package

npx jsr add @valibot/valibot

Import symbol

import { type BaseTransformation } from "@valibot/valibot";

Add Package

bunx jsr add @valibot/valibot

Import symbol

import { type BaseTransformation } from "@valibot/valibot";