mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
Vendored
+4
-4
@@ -3,10 +3,10 @@
|
||||
// Definitions by: Frank Wallis <https://github.com/frankwallis>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare module Reselect {
|
||||
declare namespace Reselect {
|
||||
|
||||
type Selector<TInput, TOutput> = (state: TInput, props?: any) => TOutput;
|
||||
|
||||
|
||||
function createSelector<TInput, TOutput, T1>(selector1: Selector<TInput, T1>, combiner: (arg1: T1) => TOutput): Selector<TInput, TOutput>;
|
||||
function createSelector<TInput, TOutput, T1, T2>(selector1: Selector<TInput, T1>, selector2: Selector<TInput, T2>, combiner: (arg1: T1, arg2: T2) => TOutput): Selector<TInput, TOutput>;
|
||||
function createSelector<TInput, TOutput, T1, T2, T3>(selector1: Selector<TInput, T1>, selector2: Selector<TInput, T2>, selector3: Selector<TInput, T3>, combiner: (arg1: T1, arg2: T2, arg3: T3) => TOutput): Selector<TInput, TOutput>;
|
||||
@@ -26,11 +26,11 @@ declare module Reselect {
|
||||
|
||||
type EqualityChecker = <T>(arg1: T, arg2: T) => boolean;
|
||||
type Memoizer = <TFunc extends Function>(func: TFunc, equalityCheck?: EqualityChecker) => TFunc;
|
||||
|
||||
|
||||
const defaultMemoize: Memoizer;
|
||||
function createSelectorCreator(memoize: Memoizer, ...memoizeOptions: any[]): any;
|
||||
}
|
||||
|
||||
declare module "reselect" {
|
||||
export = Reselect
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user