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

    Interface DetailedFormatResult<Rounded>

    Formatted presentation together with semantic tokens and resolution metadata. Built-in localized-duration output omits roundedValue. Custom codecs may provide typed value metadata independently of parsing support.

    interface DetailedFormatResult<Rounded = unknown> {
        parts: readonly FormatToken[];
        resolution: SupportedResolvedFormat;
        roundedValue?: Rounded;
        scale?: FormatScale;
        text: string;
    }

    Type Parameters

    • Rounded = unknown

    Hierarchy (View Summary)

    Index
    parts: readonly FormatToken[]

    Stable semantic fragments that render to text.

    resolution: SupportedResolvedFormat

    Successful resolution; unsupported specifications throw before a detailed result is returned.

    roundedValue?: Rounded

    Recoverable domain value. Built-ins use canonical strings; custom codecs may supply other types.

    scale?: FormatScale

    Compact or byte magnitude selected for the presentation.

    text: string

    Final rendered text.