Installation
npm install --save @types/moment-precise-range-plugin
Summary
This package contains type definitions for moment-precise-range-plugin (https://github.com/codebox/moment-precise-range).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moment-precise-range-plugin.
index.d.ts
import moment = require("moment");
export = moment;
declare module "moment" {
interface PreciseRangeValueObject {
years: number;
months: number;
days: number;
hours: number;
minutes: number;
seconds: number;
firstDateWasLater: boolean;
}
interface Moment {
preciseDiff(d2: Moment, returnValueObject?: false): string;
preciseDiff(d2: Moment, returnValueObject: true): PreciseRangeValueObject;
}
function preciseDiff(d1: Moment, d2: Moment, returnValueObject?: false): string;
function preciseDiff(d1: Moment, d2: Moment, returnValueObject: true): PreciseRangeValueObject;
}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: moment
Credits
These definitions were written by Mitchell Grice.