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

x/valibot/mod.ts>getDotPath

The modular and type safe schema library for validating structural data 🤖
Extremely Popular
Latest
function getDotPath
Re-export
import { getDotPath } from "https://deno.land/x/valibot@v0.35.0/mod.ts";

Creates and returns the dot path of an issue if possible.

Parameters

issue: BaseIssue<unknown>

The issue to get the dot path from.

Returns

string | null

The dot path or null.

Creates and returns the dot path of an issue if possible.

Type Parameters

TSchema extends BaseSchema<unknown, unknown, BaseIssue<unknown>> | BaseSchemaAsync<unknown, unknown, BaseIssue<unknown>>

Parameters

The issue to get the dot path from.

Returns

The dot path or null.