Skip to main content
Module

x/valibot/mod.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.23.0/mod.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.