File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ type Options = {
2
2
[ key : string ] : unknown ;
3
3
} ;
4
4
5
- type ApiExtension = { [ key : string ] : any } ;
5
+ type ApiExtension = { [ key : string ] : unknown } ;
6
6
type TestPlugin = (
7
7
instance : Base ,
8
8
options : Options
@@ -46,7 +46,7 @@ export class Base {
46
46
) ;
47
47
} ;
48
48
49
- return BaseWithPlugins as typeof BaseWithPlugins &
49
+ return BaseWithPlugins as typeof this & { plugins : any [ ] } &
50
50
Constructor < UnionToIntersection < ReturnTypeOf < T1 > & ReturnTypeOf < T2 > > > ;
51
51
}
52
52
@@ -57,7 +57,7 @@ export class Base {
57
57
}
58
58
} ;
59
59
60
- return BaseWitDefaults ;
60
+ return BaseWitDefaults as typeof this ;
61
61
}
62
62
63
63
constructor ( options : Options = { } ) {
@@ -72,4 +72,4 @@ export class Base {
72
72
}
73
73
74
74
options : Options ;
75
- }
75
+ }
You can’t perform that action at this time.
0 commit comments