File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -33,14 +33,16 @@ type SlotDictionary = {
33
33
[ key : string ] : Slot
34
34
}
35
35
36
+ // From vue next
37
+ // https://github.com/vuejs/vue-next/blob/1f2a652a9d2e3bec472fb1786a4c16d6ccfa1fb1/packages/runtime-core/src/h.ts#L53-L58
36
38
type RawProps = VNodeProps & {
37
39
// used to differ from a single VNode object as children
38
40
__v_isVNode ?: never
39
41
// used to differ from Array children
40
42
[ Symbol . iterator ] ?: never
41
43
} & Record < string , any >
42
44
43
- export interface MountingOptions < P , Data = { } > {
45
+ export interface MountingOptions < Props , Data = { } > {
44
46
/**
45
47
* Overrides component's default data. Must be a function.
46
48
* @see https://vue-test-utils.vuejs.org/v2/api/#data
@@ -50,11 +52,11 @@ export interface MountingOptions<P, Data = {}> {
50
52
* Sets component props when mounted.
51
53
* @see https://vue-test-utils.vuejs.org/v2/api/#props
52
54
*/
53
- props ?: ( RawProps & P ) | ( { } extends P ? null : never )
55
+ props ?: ( RawProps & Props ) | ( { } extends Props ? null : never )
54
56
/**
55
57
* @deprecated use `data` instead.
56
58
*/
57
- propsData ?: P
59
+ propsData ?: Props
58
60
/**
59
61
* Sets component attributes when mounted.
60
62
* @see https://vue-test-utils.vuejs.org/v2/api/#attrs
You can’t perform that action at this time.
0 commit comments