# @types/dayjs-precise-range

> TypeScript definitions for dayjs-precise-range

Latest version **1.0.5** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/dayjs-precise-range
pnpm add @types/dayjs-precise-range
yarn add @types/dayjs-precise-range
bun add @types/dayjs-precise-range
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2023-11-07 |
| First published | 2021-03-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51471 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/dayjs-precise-range
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dayjs-precise-range
- npm.io page: https://npm.io/package/@types/dayjs-precise-range

## Dependencies (1)

- [dayjs](https://npm.io/package/dayjs.md) ^1.10.4

## Recent versions

- 1.0.5 (latest) — 2023-11-07
- 1.0.1 (ts3.6) — 2021-06-15
- 1.0.0 (ts3.5) — 2021-03-16
- 1.0.4 — 2023-10-18
- 1.0.3 — 2023-10-10
- 1.0.2 — 2023-09-22

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dayjs-precise-range/index.d.ts)
````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](https://npmjs.com/package/dayjs)

# Credits
These definitions were written by [Eugene Shangin](https://github.com/fessracha).

---
_Source: https://npm.io/package/@types/dayjs-precise-range · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
