src/common/message/message.intf.ts
Simple message with text, type, ...
Properties |
code |
code:
|
Type : string
|
Message code |
id |
id:
|
Type : string
|
Id of the message |
interpolateValues |
interpolateValues:
|
Type : object
|
Optional |
An object containing variable values to interpolate translations against |
key |
key:
|
Type : string
|
Translation key of the message to be displayed. If no translation found, it is displayed as is |
priority |
priority:
|
Type : number
|
Optional |
Message priority determines the position of a message in a list, the highest priority is shown first messages are ordered ascending by priority a lower value means a higher priority the default value is 999 |
type |
type:
|
Type : StarkMessageType
|
Message type |
import { StarkMessageType } from "./message-type.intf";
/**
* Simple message with text, type, ...
*/
export interface StarkMessage {
/**
* Id of the message
*/
id: string;
/**
* Translation key of the message to be displayed. If no translation found, it is displayed as is
*/
key: string;
/**
* An object containing variable values to interpolate translations against
*/
interpolateValues?: object;
/**
* Message code
*/
code: string;
/**
* Message type
*/
type: StarkMessageType;
/**
* Message priority
* determines the position of a message in a list, the highest priority is shown first
* messages are ordered ascending by priority
* a lower value means a higher priority
* the default value is 999
*/
priority?: number;
}