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

x/valibot/src/index.ts>getDefaultArgs

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

Returns error 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.