# @types/vue-moment

> TypeScript definitions for vue-moment

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

## Install

```sh
npm install @types/vue-moment
pnpm add @types/vue-moment
yarn add @types/vue-moment
bun add @types/vue-moment
```

## 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 | 4.0.7 |
| Published | 2023-11-07 |
| First published | 2019-09-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 51432 |
| Maintainers | types |

## Links

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

## Dependencies (2)

- [vue](https://npm.io/package/vue.md) ^2.6.10
- [moment](https://npm.io/package/moment.md) >=2.24.0

## Recent versions

- 4.0.7 (latest) — 2023-11-07
- 4.0.3 (ts3.6) — 2021-07-02
- 4.0.2 (ts3.2) — 2020-11-19
- 4.0.0 (ts2.7) — 2019-09-25
- 4.0.6 — 2023-10-18
- 4.0.5 — 2023-10-10
- 4.0.4 — 2023-09-26
- 4.0.1 — 2020-10-16

## README

# Installation
> `npm install --save @types/vue-moment`

# Summary
This package contains type definitions for vue-moment (https://github.com/brockpetrie/vue-moment).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vue-moment.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/vue-moment/index.d.ts)
````ts
import { Duration, DurationInputArg1, DurationInputArg2, Moment, MomentFormatSpecification, MomentInput } from "moment";
import { PluginObject } from "vue";

declare namespace VueMomentPlugin {
    interface Options {
        // The optional (self-maintained) moment instance
        moment?: Moment | undefined;
    }

    interface VueStatic extends Moment {
        (options: Options): void;
        (inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean): Moment;
        (inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment;
        duration(inp?: DurationInputArg1, unit?: DurationInputArg2): Duration;
    }
}

declare module "vue/types/vue" {
    interface Vue {
        $moment: VueMomentPlugin.VueStatic;
    }
}

interface VueMoment extends PluginObject<undefined> {}

declare const VueMoment: VueMoment;
export = VueMoment;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: [moment](https://npmjs.com/package/moment), [vue](https://npmjs.com/package/vue)

# Credits
These definitions were written by [Dominik Schmidt](https://github.com/domschmidt).

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