isMessageKey
Whether text is a key of the shipped catalogue. The check is against the
English catalogue's own keys, so a host text is not one, and neither is a
plain string that merely looks like a key (an unknown dotted name, or
constructor).
This is a function exported by @mapcairn/core, checked against version 0.2.0.
Signature
import { isMessageKey } from "@mapcairn/core";
function isMessageKey(text: DefinitionText): text is MessageKey;
Parameters
text(DefinitionText)
Returns
text is MessageKey