1
0
Fork 0
cloudservices/types/moment.d.ts

16 lines
593 B
TypeScript
Raw Permalink Normal View History

2020-03-13 19:57:16 -04:00
import moment from 'moment';
declare module 'moment' {
interface PreciseRangeValueObject extends moment.MomentObjectOutput {
firstDateWasLater: boolean;
}
interface Moment {
preciseDiff(d2: moment.MomentInput, returnValueObject?: false): string;
preciseDiff(d2: moment.MomentInput, returnValueObject: true): PreciseRangeValueObject;
}
function preciseDiff(d1: moment.MomentInput, d2: moment.MomentInput, returnValueObject?: false): string;
function preciseDiff(d1: moment.MomentInput, d2: moment.MomentInput, returnValueObject: true): PreciseRangeValueObject;
}