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.


export declare class MessageValue<T = unknown> 


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


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


Method Modifiers Description
selectKey(keys)   (BETA)
toString(onError)   (BETA)