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.
import { Duration, DurationInputArg1, DurationInputArg2, Moment, MomentFormatSpecification, MomentInput } from "moment";
import { PluginObject } from "vue";
declare namespace VueMomentPlugin {
interface Options {
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, vue
Credits
These definitions were written by Dominik Schmidt.