Link Search Menu Expand Document

MessageValue class

This API is provided as a preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.

The base class of all message values.

Signature:

export declare class MessageValue<T = unknown> 

Constructors

Constructor Modifiers Description
(constructor)(type, locale, value, format)   (BETA) Constructs a new instance of the MessageValue class

Properties

Property Modifiers Type Description
localeContext   LocaleContext | null (BETA)
meta?   Meta (BETA) (Optional)
source?   string (BETA) (Optional)
type readonly string (BETA)
value   T (BETA)

Methods

Method Modifiers Description
matchSelectKey(key)   (BETA)
toString(onError)   (BETA)