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

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

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

Sets a specific error message.

Type Parameters

TReference extends Reference

Parameters

reference: TReference

The identifier reference.

message: ErrorMessage<InferIssue<ReturnType<TReference>>>

The error message.

optional
lang: string

The language of the message.