Skip to main content

Formatter

Turns one decoded field into text for a card or list, or returns null when it cannot read the value, so the template leaves it out.

This is a type alias exported by @mapcairn/core, checked against version 0.2.0.

Signature​

import type { Formatter } from "@mapcairn/core";

type Formatter = (value: FieldValue, context: FormatContext) => string | null;

See also​

Source: packages/core/src/layers/formatters.ts:23