MessageValue.(constructor)
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.
Constructs a new instance of the MessageValue
class
Signature:
constructor(type: string | null, locale: LocaleContextArg, value: T, format?: {
meta?: Readonly<Meta>;
source?: string;
toString?: MessageValue<T>['toString'];
});
Parameters
Parameter | Type | Description |
---|---|---|
type | string | null | |
locale | LocaleContextArg | |
value | T | |
format | { meta?: Readonly<Meta>; source?: string; toString?: MessageValue<T>[‘toString’]; } | (Optional) |