We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 798b58c commit 87eaaabCopy full SHA for 87eaaab
src/mount.ts
@@ -71,11 +71,21 @@ export type ObjectEmitsOptions = Record<
71
>
72
export type EmitsOptions = ObjectEmitsOptions | string[]
73
74
-// Class component
+// 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
84
export function mount<V, P>(
85
originalComponent: {
86
new (...args: any[]): V
- props(Props: P)
87
+ props(Props: P): any
88
89
},
90
options?: MountingOptions<P>
91
): VueWrapper<ComponentPublicInstance<V>>
0 commit comments