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

x/valibot/src/actions/returns/index.ts>ReturnsActionAsync

The modular and type safe schema library for validating structural data 🤖
Latest
interface ReturnsActionAsync
implements BaseTransformation<TInput, (...args: Parameters<TInput>) => Promise<Awaited<InferOutput<TSchema>>>, never>
import { type ReturnsActionAsync } from "https://deno.land/x/valibot@v1.0.0-beta.1-i18n/src/actions/returns/index.ts";

Returns action async type.

Type Parameters

TInput extends (...args: any[]) => unknown
TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>

Properties

readonly
type: "returns"

The action type.

readonly
reference: returnsAsync

The action reference.

readonly
schema: TSchema

The arguments schema.