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

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

The modular and type safe schema library for validating structural data 🤖
Go to 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.4/src/actions/returns/returnsAsync.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.