diff --git a/src/types.ts b/src/types.ts index 2420635..ee58fa3 100644 --- a/src/types.ts +++ b/src/types.ts @@ -25,11 +25,15 @@ type BaseSelector any, STATE> = ( state: STATE, ) => ReturnType; -type BaseSelectors = { +type BaseSelectors, STATE> = { [key in keyof S]: BaseSelector; }; -export type AggregateSelectors = BaseSelectors< +export type AggregateSelectors< + S extends Record any>, + SUBS extends Record, + STATE = {}, +> = BaseSelectors< UnionToIntersection | S>, STATE >;