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 = [
1818export type VueClass = { new ( ) : Vue } & typeof Vue
1919
2020function componentFactory (
21- Component : VueClass ,
21+ Component : VueClass ,
2222 options : Vue . ComponentOptions < any > = { }
2323) : VueClass {
2424 options . name = options . name || ( Component as any ) . _componentTag
@@ -53,7 +53,7 @@ function componentFactory (
5353 return Super . extend ( options )
5454}
5555
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
5757export default function decorator < V extends VueClass > ( target : V ) : V
5858export default function decorator < V extends VueClass > ( options : Vue . ComponentOptions < any > | V ) : any {
5959 if ( typeof options === 'function' ) {
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ describe('vue-class-component', () => {
6464 it ( 'other options' , ( done ) => {
6565 let v : number
6666
67- @Component ( {
67+ @Component < MyComp > ( {
6868 watch : {
6969 a : val => v = val
7070 }
You can’t perform that action at this time.
0 commit comments