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

x/valibot/src/index.ts>defaultArgs

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

Returns message and pipe from dynamic arguments.

Type Parameters

TPipe extends Pipe<any> | PipeAsync<any>

Parameters

arg1: ErrorMessage | TPipe | undefined

First argument.

arg2: TPipe | undefined

Second argument.

Returns

[ErrorMessage | undefined, TPipe | undefined]

The default arguments.