8000
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 e8ea208 commit 98c7041Copy full SHA for 98c7041
src/component/componentProps.ts
@@ -43,7 +43,7 @@ type ExtractFunctionPropType<
43
T extends Function,
44
TArgs extends Array<any> = any[],
45
TResult = any
46
-> = T extends (...args: TArgs) => TResult ? T : never
+> = T extends (...args: TArgs) => TResult ? T : any
47
48
type ExtractCorrectPropType<T> = T extends Function
49
? ExtractFunctionPropType<T>
src/component/componentProxy.ts
@@ -27,17 +27,12 @@ export type ComponentRenderProxy<
27
$data: D
28
$props: Readonly<P & PublicProps>
29
$attrs: Data
30
- $refs: Data
31
- $slots: Data
32
- $root: ComponentInstance | null
33
- $parent: ComponentInstance | null
34
- $emit: (event: string, ...args: unknown[]) => void
35
} & Readonly<P> &
36
UnwrapRef<B> &
37
D &
38
M &
39
ExtractComputedReturns<C> &
40
- Vue
+ Omit<Vue, '$data' | '$props' | '$attrs'>
41
42
// for Vetur and TSX support
type VueConstructorProxy<PropsOptions, RawBindings> = VueConstructor & {
0 commit comments