You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
434 B
9 lines
434 B
export declare type Unit = 'second' | 'minute' | 'hour' | 'day' | 'week' | 'month' | 'quarter' | 'year';
|
|
export declare function selectUnit(from: Date | number, to?: Date | number, thresholds?: Partial<Thresholds>): {
|
|
value: number;
|
|
unit: Unit;
|
|
};
|
|
declare type Thresholds = Record<'second' | 'minute' | 'hour' | 'day', number>;
|
|
export declare const DEFAULT_THRESHOLDS: Thresholds;
|
|
export {};
|
|
//# sourceMappingURL=diff.d.ts.map
|