Unicode MessageFormat for JavaScript
    Preparing search index...

    Interface MessageValue<T, P>

    The base for all resolved message values.

    interface MessageValue<T extends string, P extends string = T> {
        dir?: "ltr" | "rtl" | "auto";
        options?: object;
        selectKey?: (keys: Set<string>) => null | string;
        toParts?: () => MessageExpressionPart<P>[];
        toString?: () => string;
        type: T;
        valueOf?: () => unknown;
    }

    Type Parameters

    • T extends string

      The uniquely identifying type of the message value.

    • P extends string = T

      The "type" used in the formatted-parts representation of the message value.

    Hierarchy (View Summary)

    Index

    Properties

    dir?: "ltr" | "rtl" | "auto"
    options?: object
    selectKey?: (keys: Set<string>) => null | string
    toParts?: () => MessageExpressionPart<P>[]
    toString?: () => string
    type: T
    valueOf?: () => unknown