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

1.0.5 • Public • Published

Installation

npm install --save @types/dayjs-precise-range

Summary

This package contains type definitions for dayjs-precise-range (https://github.com/huangjinlin/dayjs-precise-range).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dayjs-precise-range.

index.d.ts

import dayjs = require("dayjs");

export as namespace preciseDiff;
export = dayjs;

declare module "dayjs" {
    interface PreciseRangeValueObject {
        years: number;
        months: number;
        days: number;
        hours: number;
        minutes: number;
        seconds: number;
        firstDateWasLater: boolean;
    }

    interface Dayjs {
        preciseDiff(d2: Dayjs, returnValueObject?: false): string;
        preciseDiff(d2: Dayjs, returnValueObject: true): PreciseRangeValueObject;
    }

    function preciseDiff(d1: Dayjs, d2: Dayjs, returnValueObject?: false): string;
    function preciseDiff(d1: Dayjs, d2: Dayjs, returnValueObject: true): PreciseRangeValueObject;
}

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: dayjs

Credits

These definitions were written by Eugene Shangin.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/dayjs-precise-range

Weekly Downloads

580

Version

1.0.5

License

MIT

Unpacked Size

4.09 kB

Total Files

5

Last publish

Collaborators

  • types