File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed
components/authorization/policy/conditions Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,10 @@ export const OptimizerWatermark = createMetadataDecorator({
8
8
} ) ;
9
9
10
10
export abstract class Optimizer {
11
- static register = ( ) => ( cls : Type < Optimizer > ) => OptimizerWatermark ( ) ( cls ) ;
11
+ static register =
12
+ ( ) =>
13
+ < Cls extends Type < Optimizer > > ( cls : Cls ) =>
14
+ OptimizerWatermark ( ) ( cls ) ;
12
15
13
16
abstract optimize ( condition : Condition ) : Condition ;
14
17
}
Original file line number Diff line number Diff line change @@ -8,5 +8,7 @@ export const CommandWatermark = createMetadataDecorator({
8
8
additionalDecorators : [ Injectable ( ) ] ,
9
9
} ) ;
10
10
11
- export const InjectableCommand = ( ) => ( cls : AbstractClass < Command > ) =>
12
- CommandWatermark ( ) ( cls ) ;
11
+ export const InjectableCommand =
12
+ ( ) =>
13
+ < Cls extends AbstractClass < Command > > ( cls : Cls ) =>
14
+ CommandWatermark ( ) ( cls ) ;
Original file line number Diff line number Diff line change @@ -14,5 +14,6 @@ export const MigrationVersion = createMetadataDecorator({
14
14
} ) ;
15
15
16
16
export const Migration =
17
- ( isoTime : string ) => ( cls : AbstractClass < BaseMigration > ) =>
17
+ ( isoTime : string ) =>
18
+ < Cls extends AbstractClass < BaseMigration > > ( cls : Cls ) =>
18
19
MigrationVersion ( isoTime ) ( cls ) ;
You can’t perform that action at this time.
0 commit comments