File tree Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Expand file tree Collapse file tree 1 file changed +15
-6
lines changed Original file line number Diff line number Diff line change @@ -12,17 +12,26 @@ export type MemoizeFn = (t: AnyFn) => MemoizedProjection;
12
12
13
13
export type ComparatorFn = ( a : any , b : any ) => boolean ;
14
14
15
- export interface MemoizedSelector < State , Result >
16
- extends Selector < State , Result > {
15
+ export type DefaultProjectorFn < T > = ( ...args : any [ ] ) => T ;
16
+
17
+ export interface MemoizedSelector <
18
+ State ,
19
+ Result ,
20
+ ProjectorFn = DefaultProjectorFn < Result >
21
+ > extends Selector < State , Result > {
17
22
release ( ) : void ;
18
- projector : AnyFn ;
23
+ projector : ProjectorFn ;
19
24
setResult : ( result ?: Result ) => void ;
20
25
}
21
26
22
- export interface MemoizedSelectorWithProps < State , Props , Result >
23
- extends SelectorWithProps < State , Props , Result > {
27
+ export interface MemoizedSelectorWithProps <
28
+ State ,
29
+ Props ,
30
+ Result ,
31
+ ProjectorFn = DefaultProjectorFn < Result >
32
+ > extends SelectorWithProps < State , Props , Result > {
24
33
release ( ) : void ;
25
- projector : AnyFn ;
34
+ projector : ProjectorFn ;
26
35
setResult : ( result ?: Result ) => void ;
27
36
}
28
37
You can’t perform that action at this time.
0 commit comments