File

src/common/message/message.intf.ts

Description

Simple message with text, type, ...

Index

Properties

Properties

code
code: string
Type : string

Message code

id
id: string
Type : string

Id of the message

interpolateValues
interpolateValues: object
Type : object
Optional

An object containing variable values to interpolate translations against

key
key: string
Type : string

Translation key of the message to be displayed. If no translation found, it is displayed as is

priority
priority: number
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: StarkMessageType
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;
}

results matching ""

    No results matching ""