DefinitionText
Text a definition shows a person: a MessageKey, looked up in the
active catalogue where the definition is rendered; a HostText, a
host's own key with its source text, translated from
MessageCatalogue; or a plain string, shown as
written. A third-party definition keeps writing plain strings. Read it
with resolveText. A plain string is never taken for a key, so a host opts
text in by writing a HostText, and the runtime check against the English
catalogue decides which strings are shipped keys.
This is a type alias exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { DefinitionText } from "@mapcairn/core";
type DefinitionText = MessageKey | string | HostText;