Skip to content

Commit 87eaaab

Browse files
committed
chore: fix tests
1 parent 798b58c commit 87eaaab

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/mount.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,21 @@ export type ObjectEmitsOptions = Record<
7171
>
7272
export type EmitsOptions = ObjectEmitsOptions | string[]
7373

74-
// Class component
74+
// Class component - no props
75+
export function mount<V>(
76+
originalComponent: {
77+
new (...args: any[]): V
78+
registerHooks(keys: string[]): void
79+
},
80+
options?: MountingOptions<any>
81+
): VueWrapper<ComponentPublicInstance<V>>
82+
83+
// Class component - props
7584
export function mount<V, P>(
7685
originalComponent: {
7786
new (...args: any[]): V
78-
props(Props: P)
87+
props(Props: P): any
88+
registerHooks(keys: string[]): void
7989
},
8090
options?: MountingOptions<P>
8191
): VueWrapper<ComponentPublicInstance<V>>

0 commit comments

Comments
 (0)