4.0.7 • Published 6 months ago
@types/vue-moment v4.0.7
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
// Type definitions for vue-moment 4.0
// Project: https://github.com/brockpetrie/vue-moment
// Definitions by: Dominik Schmidt <https://github.com/domschmidt>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.7
import { Moment, MomentFormatSpecification, MomentInput, Duration, DurationInputArg2, DurationInputArg1 } 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: Fri, 02 Jul 2021 18:05:10 GMT
- Dependencies: @types/moment, @types/vue
- Global values: none
Credits
These definitions were written by Dominik Schmidt.