22
33import Vue , { ComponentOptions } from 'vue'
44import { ThisTypedMountOptions , VueClass } from '@vue/test-utils'
5- import { Store , StoreOptions } from 'vuex'
6- import Router , { RouteConfig } from 'vue-router'
75// eslint-disable-next-line import/no-extraneous-dependencies
86import {
97 queries ,
@@ -36,12 +34,19 @@ export interface RenderResult extends BoundFunctions<typeof queries> {
3634 updateProps ( props : object ) : Promise < void >
3735}
3836
39- export interface RenderOptions < V extends Vue , S = { } >
37+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
38+ type Store = any
39+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
40+ type Routes = any
41+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
42+ type Router = any
43+
44+ export interface RenderOptions < V extends Vue >
4045 // The props and store options special-cased by Vue Testing Library and NOT passed to mount().
4146 extends Omit < ThisTypedMountOptions < V > , 'store' | 'props' > {
4247 props ?: object
43- store ?: StoreOptions < S >
44- routes ?: RouteConfig [ ] | Router
48+ store ?: Store
49+ routes ?: Routes
4550 container ?: Element
4651 baseElement ?: Element
4752}
@@ -50,11 +55,11 @@ export type ConfigurationCallback<V extends Vue> =
5055 | ( (
5156 localVue : typeof Vue ,
5257 // eslint-disable-next-line @typescript-eslint/no-explicit-any
53- store : Store < any > ,
58+ store : Store ,
5459 router : Router ,
5560 ) => Partial < ThisTypedMountOptions < V > > )
5661 // eslint-disable-next-line @typescript-eslint/no-explicit-any
57- | ( ( localVue : typeof Vue , store : Store < any > , router : Router ) => void )
62+ | ( ( localVue : typeof Vue , store : Store , router : Router ) => void )
5863
5964export function render < V extends Vue > (
6065 TestComponent : VueClass < V > | ComponentOptions < V > ,
0 commit comments