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

x/valibot/src/schemas/record/utils/index.ts>getRecordArgs

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Go to Latest
function getRecordArgs
import { getRecordArgs } from "https://deno.land/x/valibot@v0.13.0/src/schemas/record/utils/index.ts";

Returns key, value, error and pipe from dynamic arguments.

Type Parameters

TRecordKey extends RecordKey | RecordKeyAsync
TRecordValue extends BaseSchema | BaseSchemaAsync
TPipe extends Pipe<any> | PipeAsync<any>

Parameters

First argument.

arg2:
| string
| undefined

Second argument.

arg3: TPipe | string | undefined

Third argument.

arg4: TPipe | undefined

Fourth argument.

Returns

[
string | undefined,
TPipe | undefined,
]

The record arguments.