IMessage

Interface

Generic structure for returning a translatable message from one package to another, such that the calling package is responsible for the translation

Properties

Property Type Notes
code string

Unique key that can be used with a i18n system in a consuming application

message string

English message describing the issue, for debugging only. Not intended to be shown in an application interface.

data Optional Record<stringunknown>

Optional data that can be sent along


Interface defined in common/src/types/IMessage.ts:9