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

x/valibot/src/schemas/tuple/utils/index.ts>getTupleArgs

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function getTupleArgs
import { getTupleArgs } from "https://deno.land/x/valibot@v0.19.0/src/schemas/tuple/utils/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.