# DefinitionText

Text a definition shows a person: a [`MessageKey`](https://docs.mapcairn.com/api/core/MessageKey.md), looked up in the
active catalogue where the definition is rendered; a [`HostText`](https://docs.mapcairn.com/api/core/HostText.md), a
host's own key with its source text, translated from
[`MessageCatalogue`](https://docs.mapcairn.com/api/core/MessageCatalogue.md); 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

```ts
import type { DefinitionText } from "@mapcairn/core";
 
type DefinitionText = MessageKey | string | HostText;
```

## See also

- [`MessageKey`](https://docs.mapcairn.com/api/core/MessageKey.md)
- [`HostText`](https://docs.mapcairn.com/api/core/HostText.md)

Source: [packages/core/src/ports/messages.ts:751](https://github.com/MapCairn/mapcairn/blob/main/packages/core/src/ports/messages.ts#L751)
