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

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

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

Second argument.

arg3: TPipe | ErrorMessage | undefined

Third argument.

arg4: TPipe | undefined

Fourth argument.

Returns

[
ErrorMessage | undefined,
TPipe | undefined,
]

The record arguments.