Skip to main content

createFormatterRegistry

A registry of the built-in formatters plus any extra ones, by name.

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

Signature​

import { createFormatterRegistry } from "@mapcairn/core";

function createFormatterRegistry(extra?: Readonly<Record<string, Formatter>>): FormatterRegistry;

Parameters​

  • extra? (Readonly<Record<string, Formatter>>)

Returns​

FormatterRegistry

See also​

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