Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

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

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

First argument.

arg2: TPipe | string | undefined

Second argument.

arg3: TPipe | undefined

Third argument.

Returns

[TRest, string | undefined, TPipe | undefined]

The tuple arguments.