1.0.5 • Published 6 months ago
@types/dayjs-precise-range v1.0.5
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
// Type definitions for dayjs-precise-range 1.0
// Project: https://github.com/huangjinlin/dayjs-precise-range
// Definitions by: Eugene Shangin <https://github.com/fessracha>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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: Tue, 15 Jun 2021 13:01:18 GMT
- Dependencies: @types/dayjs
- Global values:
preciseDiff
Credits
These definitions were written by Eugene Shangin.