// Type definitions for vue-moment 4.0 // Project: https://github.com/brockpetrie/vue-moment // Definitions by: Dominik Schmidt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.7 import { Moment, MomentFormatSpecification, MomentInput } from 'moment'; import { PluginObject } from 'vue'; declare namespace VueMomentPlugin { interface Options { // The optional (self-maintained) moment instance moment?: Moment; } interface VueStatic extends Moment { (options: Options): void; (inp?: MomentInput, format?: MomentFormatSpecification, strict?: boolean): Moment; (inp?: MomentInput, format?: MomentFormatSpecification, language?: string, strict?: boolean): Moment; } } declare module 'vue/types/vue' { interface Vue { $moment: VueMomentPlugin.VueStatic; } } interface VueMoment extends PluginObject {} declare const VueMoment: VueMoment; export = VueMoment;