File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ const internalHooks = [
18
18
export type VueClass = { new ( ) : Vue } & typeof Vue
19
19
20
20
function componentFactory (
21
- Component : VueClass ,
21
+ Component : VueClass ,
22
22
options : Vue . ComponentOptions < any > = { }
23
23
) : VueClass {
24
24
options . name = options . name || ( Component as any ) . _componentTag
@@ -53,7 +53,7 @@ function componentFactory (
53
53
return Super . extend ( options )
54
54
}
55
55
56
- export default function decorator ( options : Vue . ComponentOptions < any > ) : < V extends VueClass > ( target : V ) => V
56
+ export default function decorator < U extends Vue > ( options : Vue . ComponentOptions < U > ) : < V extends VueClass > ( target : V ) => V
57
57
export default function decorator < V extends VueClass > ( target : V ) : V
58
58
export default function decorator < V extends VueClass > ( options : Vue . ComponentOptions < any > | V ) : any {
59
59
if ( typeof options === 'function' ) {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ describe('vue-class-component', () => {
64
64
it ( 'other options' , ( done ) => {
65
65
let v : number
66
66
67
- @Component ( {
67
+ @Component < MyComp > ( {
68
68
watch : {
69
69
a : val => v = val
70
70
}
You can’t perform that action at this time.
0 commit comments