UNPKG

@formatjs/intl-relativetimeformat

Version:

Formats JavaScript dates to relative time strings.

9 lines (8 loc) 638 B
import { LocaleFieldsData, RelativeTimeFormatInternal } from '@formatjs/ecma402-abstract'; export declare function InitializeRelativeTimeFormat(rtf: Intl.RelativeTimeFormat, locales: string | string[] | undefined, options: Intl.RelativeTimeFormatOptions | undefined, { getInternalSlots, availableLocales, relevantExtensionKeys, localeData, getDefaultLocale, }: { getInternalSlots(rtf: Intl.RelativeTimeFormat): RelativeTimeFormatInternal; availableLocales: Set<string>; relevantExtensionKeys: string[]; localeData: Record<string, LocaleFieldsData | undefined>; getDefaultLocale(): string; }): Intl.RelativeTimeFormat;