Options for message parameterization.

interface MessageOptions {
    accessKey?: string;
    numberParam?: number;
    numberParams?: number[];
    stringParam?: string | number;
    stringParams?: (string | number)[];
}

Properties

accessKey?: string

Access key to append to the message.

numberParam?: number

Single numeric parameter for %d placeholders.

numberParams?: number[]

Multiple ordered numeric parameters for %1$d, %2$d, etc.

stringParam?: string | number

Single string parameter for %s placeholders.

stringParams?: (string | number)[]

Multiple ordered string parameters for %1$s, %2$s, etc.