UNPKG

react-timeago

Version:

A simple Time-Ago component for ReactJs

18 lines (17 loc) 667 B
import type { Formatter } from './types' declare const defaultFormatter: Formatter declare const $$EXPORT_DEFAULT_DECLARATION$$: typeof defaultFormatter declare type $$EXPORT_DEFAULT_DECLARATION$$ = typeof $$EXPORT_DEFAULT_DECLARATION$$ export default $$EXPORT_DEFAULT_DECLARATION$$ export type IntlFormatterOptions = Readonly<{ locale?: void | string localeMatcher?: 'lookup' | 'best fit' numberingSystem?: Intl$NumberingSystem style?: 'long' | 'short' | 'narrow' numeric?: 'always' | 'auto' }> export declare const makeIntlFormatter: ( $$PARAM_0$$: IntlFormatterOptions, ) => Formatter export declare type makeIntlFormatter = typeof makeIntlFormatter