@neutrium/formatter - v1.0.1
    Preparing search index...

    Interface FormatterOptions<Codecs>

    Constructor options for the low-level extensions!Formatter registry.

    The constructor installs exactly the supplied codecs. Use index!createFormatter to include the built-in codecs automatically.

    interface FormatterOptions<
        Codecs extends readonly AnyFormatCodec[] = readonly AnyFormatCodec[],
    > {
        codecs?: Codecs;
        context?: Readonly<Record<string, unknown>>;
        locale?: string;
    }

    Type Parameters

    • Codecs extends readonly AnyFormatCodec[] = readonly AnyFormatCodec[]

    Hierarchy

    • Readonly<RegistryOptions<Codecs>>
      • FormatterOptions
    Index
    codecs?: Codecs

    Additional factory codecs, or the complete codec tuple for an explicit registry.

    context?: Readonly<Record<string, unknown>>

    Shallow-copied application data supplied to codec operations and resolution hooks.

    locale?: string

    Default BCP 47 locale for operations that omit locale. Defaults to en-US.