Interface RelativeTimeFormatOptions

An object with some or all of properties of options parameter of Intl.RelativeTimeFormat constructor.

MDN.

interface RelativeTimeFormatOptions {
    localeMatcher?: RelativeTimeFormatLocaleMatcher;
    numeric?: RelativeTimeFormatNumeric;
    style?: RelativeTimeFormatStyle;
}

Properties

The locale matching algorithm to use. For information about this option, see Intl page.

The format of output message.

The length of the internationalized message.