@@ -10,40 +10,6 @@ import {
1010
1111const identity = < T > ( arg :T ) => arg ;
1212
13- export interface ExtendedSelectorSubscribe <
14- StateType extends TState ,
15- Mutators extends [ StoreMutatorIdentifier , unknown ] [ ] ,
16- TActions extends Record < string , AnyFunction > ,
17- TSelectors extends Record < string , AnyFunction > ,
18- _Builder extends TSelectorBuilder < StateType , Mutators , TActions , TSelectors > ,
19- > {
20- < K extends keyof ( StateType & TSelectors & { state :true } ) , S > (
21- key :K ,
22- ...args :[
23- ...( K extends keyof TSelectors ?Parameters < TSelectors [ K ] > :[ ] ) ,
24- listener :( state :S , previousState :S ) => void ,
25- ]
26- ) :( ) => void ;
27- < K extends keyof ( StateType & TSelectors & { state :true } ) , S > (
28- key :K ,
29- ...args :[
30- ...( K extends keyof TSelectors ?Parameters < TSelectors [ K ] > :[ ] ) ,
31- selector :(
32- state :K extends keyof TSelectors
33- ?TSelectors [ K ]
34- :K extends keyof StateType
35- ?StateType [ K ]
36- :StateType
37- ) => S ,
38- listener :( state :S , previousState :S ) => void ,
39- options ?:{
40- equalityFn ?:TEqualityChecker < S > ;
41- fireImmediately ?:boolean ;
42- } ,
43- ]
44- ) :( ) => void ;
45- }
46-
4713export const extendSelectors = <
4814StateType extends TState ,
4915Mutators extends [ StoreMutatorIdentifier , unknown ] [ ] ,