Message
A piece of text as a key and its parameters, with no language chosen yet.
Pure helpers return these instead of English, and the one place that shows
or announces the text formats it with the active catalogue (see
formatMessage). Message with no argument is any message.
This is a type alias exported by @mapcairn/core, checked against version 0.2.0.
Signature
import type { Message } from "@mapcairn/core";
type Message<K extends MessageKey = MessageKey> = K extends MessageKey ? {
readonly key: K;
readonly params: MessageArgs<MessageParams[K]>;
} : never;
Type parameters
K?(MessageKey)