From e276e1e472d889d8a10b3d6aa4807e93dee40447 Mon Sep 17 00:00:00 2001 From: Bart Ledoux Date: Wed, 22 Nov 2017 18:22:50 -0600 Subject: [PATCH] Add missing types to type definition When using typescript on a vue site that has animation, it becomes quite vital to be able to check that they are called. In order to do just that in TS too. I add the missing types. --- types/index.d.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/types/index.d.ts b/types/index.d.ts index ae74e950b..dfea479b4 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -108,7 +108,12 @@ interface MountOptions extends ComponentOptions { type ShallowOptions = MountOptions +interface VueTestUtilsConfigOptions { + stubs?: Stubs +} + export declare function createLocalVue (): typeof Vue +export declare let config: VueTestUtilsConfigOptions export declare function mount = VueClass> (component: Ctor, options?: MountOptions): Wrapper export declare function mount (component: ComponentOptions, options?: MountOptions): Wrapper @@ -117,3 +122,6 @@ export declare function mount (component: FunctionalComponentOptions, options?: export declare function shallow = VueClass> (component: Ctor, options?: ShallowOptions): Wrapper export declare function shallow (component: ComponentOptions, options?: ShallowOptions): Wrapper export declare function shallow (component: FunctionalComponentOptions, options?: ShallowOptions): Wrapper + +export declare let TransitionStub: Component | string | true +export declare let TransitionGroupStub: Component | string | true