Commit 181765f 1 parent 4316bd3 commit 181765f Copy full SHA for 181765f
File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -41,11 +41,11 @@ type Routes = any
41
41
// eslint-disable-next-line @typescript-eslint/no-explicit-any
42
42
type Router = any
43
43
44
- export interface RenderOptions < V extends Vue >
44
+ export interface RenderOptions < V extends Vue , S = Store >
45
45
// The props and store options special-cased by Vue Testing Library and NOT passed to mount().
46
46
extends Omit < ThisTypedMountOptions < V > , 'store' | 'props' > {
47
47
props ?: object
48
- store ?: Store
48
+ store ?: S
49
49
routes ?: Routes
50
50
container ?: Element
51
51
baseElement ?: Element
@@ -61,9 +61,11 @@ export type ConfigurationCallback<V extends Vue> =
61
61
// eslint-disable-next-line @typescript-eslint/no-explicit-any
62
62
| ( ( localVue : typeof Vue , store : Store , router : Router ) => void )
63
63
64
- export function render < V extends Vue > (
64
+ export function render < V extends Vue , S = Store > (
65
65
TestComponent : VueClass < V > | ComponentOptions < V > ,
66
- options ?: RenderOptions < V > ,
66
+ // eslint-disable-next-line @typescript-eslint/ban-tslint-comment
67
+ // tslint:disable-next-line no-unnecessary-generics
68
+ options ?: RenderOptions < V , S > ,
67
69
configure ?: ConfigurationCallback < V > ,
68
70
) : RenderResult
69
71
You can’t perform that action at this time.
0 commit comments