Skip to content

Commit b4597d3

Browse files
committed
chore: review changes
1 parent 9e1ca49 commit b4597d3

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/types.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,16 @@ type SlotDictionary = {
3333
[key: string]: Slot
3434
}
3535

36+
// From vue next
37+
// https://github.com/vuejs/vue-next/blob/1f2a652a9d2e3bec472fb1786a4c16d6ccfa1fb1/packages/runtime-core/src/h.ts#L53-L58
3638
type RawProps = VNodeProps & {
3739
// used to differ from a single VNode object as children
3840
__v_isVNode?: never
3941
// used to differ from Array children
4042
[Symbol.iterator]?: never
4143
} & Record<string, any>
4244

43-
export interface MountingOptions<P, Data = {}> {
45+
export interface MountingOptions<Props, Data = {}> {
4446
/**
4547
* Overrides component's default data. Must be a function.
4648
* @see https://vue-test-utils.vuejs.org/v2/api/#data
@@ -50,11 +52,11 @@ export interface MountingOptions<P, Data = {}> {
5052
* Sets component props when mounted.
5153
* @see https://vue-test-utils.vuejs.org/v2/api/#props
5254
*/
53-
props?: (RawProps & P) | ({} extends P ? null : never)
55+
props?: (RawProps & Props) | ({} extends Props ? null : never)
5456
/**
5557
* @deprecated use `data` instead.
5658
*/
57-
propsData?: P
59+
propsData?: Props
5860
/**
5961
* Sets component attributes when mounted.
6062
* @see https://vue-test-utils.vuejs.org/v2/api/#attrs

0 commit comments

Comments
 (0)