Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/valibot/src/index.ts>restAndDefaultArgs

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

Returns rest, error and pipe from dynamic arguments.

Type Parameters

TRest extends BaseSchema | BaseSchemaAsync | undefined
TPipe extends Pipe<any> | PipeAsync<any>

Parameters

arg1:
| undefined

First argument.

arg2: TPipe | ErrorMessage | undefined

Second argument.

arg3: TPipe | undefined

Third argument.

Returns

[TRest, ErrorMessage | undefined, TPipe | undefined]

The tuple arguments.