Skip to content

Commit

Permalink
[reselect_v4.x.x.js] Redefine OutputSelector type as a callable object (
Browse files Browse the repository at this point in the history
  • Loading branch information
augusto-altman committed Feb 14, 2020
1 parent bc582bb commit 883b47f
Showing 1 changed file with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@ declare module "reselect" {
declare type InputSelector<-TState, TProps, TResult> =
(state: TState, props: TProps, ...rest: any[]) => TResult

declare type OutputSelector<-TState, TProps, TResult> =
& InputSelector<TState, TProps, TResult>
& {
declare type OutputSelector<-TState, TProps, TResult> = {|
(state: TState, props: TProps, ...rest: any[]): TResult,
recomputations(): number,
resetRecomputations(): number,
resultFunc(...args: any[]): TResult,
...
};
|}

declare type SelectorCreator = {
<TState, TProps, TResult, T1>(
Expand Down

0 comments on commit 883b47f

Please sign in to comment.