# @types/moment-precise-range-plugin

> TypeScript definitions for moment-precise-range-plugin

Latest version **1.3.0** (published 2024-11-11) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 55/100 (C)** — status: stable.

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

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.3.0 |
| Published | 2024-11-11 |
| First published | 2019-02-08 |
| 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 | 51443 |
| Maintainers | types |

## Links

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

## Dependencies (1)

- [moment](https://npm.io/package/moment.md) >=2.14.0

## Recent versions

- 1.3.0 (latest) — 2024-11-11
- 0.2.3 (ts4.5) — 2023-11-07
- 0.2.0 (ts2.0) — 2019-02-08
- 0.2.2 — 2023-10-18
- 0.2.1 — 2023-09-27

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/moment-precise-range-plugin/index.d.ts)
````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: Mon, 11 Nov 2024 18:02:21 GMT
 * Dependencies: [moment](https://npmjs.com/package/moment)

# Credits
These definitions were written by [Mitchell Grice](https://github.com/gricey432).

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