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

x/valibot/src/storages/specificMessage/index.ts>getSpecificMessage

The modular and type safe schema library for validating structural data 🤖
Go to Latest
function getSpecificMessage
import { getSpecificMessage } from "https://deno.land/x/valibot@v1.0.0-beta.4/src/storages/specificMessage/index.ts";

Returns a specific error message.

Type Parameters

TReference extends Reference

Parameters

reference: TReference

The identifier reference.

optional
lang: string

The language of the message.

Returns

ErrorMessage<InferIssue<ReturnType<TReference>>> | undefined

The error message.