File tree 1 file changed +9
-5
lines changed
1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import {
19
19
20
20
export function Options < V extends Vue > (
21
21
options : ComponentOptions & ThisType < V >
22
- ) : < VC extends VueConstructor > ( target : VC ) => VC {
22
+ ) : < VC extends VueConstructor < VueBase > > ( target : VC ) => VC {
23
23
return ( Component ) => {
24
24
Component . __vccBase = options
25
25
return Component
@@ -28,19 +28,23 @@ export function Options<V extends Vue>(
28
28
29
29
export interface VueDecorator {
30
30
// Class decorator
31
- ( Ctor : VueConstructor ) : void
31
+ ( Ctor : VueConstructor < VueBase > ) : void
32
32
33
33
// Property decorator
34
- ( target : Vue , key : string ) : void
34
+ ( target : VueBase , key : string ) : void
35
35
36
36
// Parameter decorator
37
- ( target : Vue , key : string , index : number ) : void
37
+ ( target : VueBase , key : string , index : number ) : void
38
38
}
39
39
40
40
export function createDecorator (
41
41
factory : ( options : ComponentOptions , key : string , index : number ) => void
42
42
) : VueDecorator {
43
- return ( target : Vue | VueConstructor , key ?: any , index ?: any ) => {
43
+ return (
44
+ target : VueBase | VueConstructor < VueBase > ,
45
+ key ?: any ,
46
+ index ?: any
47
+ ) => {
44
48
const Ctor =
45
49
typeof target === 'function'
46
50
? target
You can’t perform that action at this time.
0 commit comments