MessageLiteral.(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 MessageLiteral
class
Signature:
constructor(literal: string, fmt?: {
meta?: Readonly<Meta>;
});
Parameters
Parameter | Type | Description |
---|---|---|
literal | string | |
fmt | { meta?: Readonly<Meta>; } | (Optional) |