TFlashMessenger object¶
The TFlashMessenger
represents an object of messages used in the parseAndAddFlashMessages method of the Flash Messenger API. Such format is usually resulted from the server response when making other API calls and can also appear in some of the HTTPApi responses.
export type TFlashMessenger = {
error: string[];
info: string[];
success: string[];
warning: string[];
};
Properties¶
TFlashMessenger.error¶
string[]
Error messages returned by the TFlashMessenger. They appear when something went wrong with the HTTPApi request.
TFlashMessenger.info¶
string[]
Info messages returned by the TFlashMessenger. They appear when there is a valuable information in the request that can be displayed to the user.
TFlashMessenger.success¶
string[]
Success messages returned by the TFlashMessenger. They appear when there is an information about the successful request call.
TFlashMessenger.warning¶
string[]
Warning messages returned by the TFlashMessenger. They appear when something that was not quite right with the request is worth mentioning in the message.