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

x/valibot/src/utils/getDotPath/index.ts>getDotPath

The modular and type safe schema library for validating structural data 🤖
Latest
function getDotPath
import { getDotPath } from "https://deno.land/x/valibot@v1.0.0-beta.7/src/utils/getDotPath/index.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.