@types/moment-precise-range-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.2.3 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/moment-precise-range-plugin

Weekly Downloads

3,448

Version

0.2.3

License

MIT

Unpacked Size

4.11 kB

Total Files

5

Last publish

Collaborators

  • types