12 lines
278 B
Text
12 lines
278 B
Text
// @flow
|
|
|
|
declare module.exports: (
|
|
dateToCompare: Date | string | number,
|
|
date: Date | string | number,
|
|
options?: {
|
|
addSuffix?: boolean,
|
|
unit?: 's' | 'm' | 'h' | 'd' | 'M' | 'Y',
|
|
partialMethod?: 'floor' | 'ceil' | 'round',
|
|
locale?: Object
|
|
}
|
|
) => string
|