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

x/valibot/mod.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.28.1/mod.ts";

Returns rest, error and pipe from dynamic arguments.

Type Parameters

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

Parameters

arg1:
| ErrorMessage
| undefined

First argument.

arg2: TPipe | ErrorMessage | undefined

Second argument.

arg3: TPipe | undefined

Third argument.

Returns

[TRest, ErrorMessage | undefined, TPipe | undefined]

The tuple arguments.