123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676 |
- type Selector<TState, TProps, TResult> = {
- (state: TState, props: TProps, ...rest: any[]): TResult;
- };
- type SelectorCreator = {
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- selector3: Selector<TState, TProps, T3>,
- selector4: Selector<TState, TProps, T4>,
- selector5: Selector<TState, TProps, T5>,
- selector6: Selector<TState, TProps, T6>,
- selector7: Selector<TState, TProps, T7>,
- selector8: Selector<TState, TProps, T8>,
- selector9: Selector<TState, TProps, T9>,
- selector10: Selector<TState, TProps, T10>,
- selector11: Selector<TState, TProps, T11>,
- selector12: Selector<TState, TProps, T12>,
- selector13: Selector<TState, TProps, T13>,
- selector14: Selector<TState, TProps, T14>,
- selector15: Selector<TState, TProps, T15>,
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9,
- arg10: T10,
- arg11: T11,
- arg12: T12,
- arg13: T13,
- arg14: T14,
- arg15: T15
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14, T15>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>,
- Selector<TState, TProps, T3>,
- Selector<TState, TProps, T4>,
- Selector<TState, TProps, T5>,
- Selector<TState, TProps, T6>,
- Selector<TState, TProps, T7>,
- Selector<TState, TProps, T8>,
- Selector<TState, TProps, T9>,
- Selector<TState, TProps, T10>,
- Selector<TState, TProps, T11>,
- Selector<TState, TProps, T12>,
- Selector<TState, TProps, T13>,
- Selector<TState, TProps, T14>,
- Selector<TState, TProps, T15>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9,
- arg10: T10,
- arg11: T11,
- arg12: T12,
- arg13: T13,
- arg14: T14,
- arg15: T15
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- selector3: Selector<TState, TProps, T3>,
- selector4: Selector<TState, TProps, T4>,
- selector5: Selector<TState, TProps, T5>,
- selector6: Selector<TState, TProps, T6>,
- selector7: Selector<TState, TProps, T7>,
- selector8: Selector<TState, TProps, T8>,
- selector9: Selector<TState, TProps, T9>,
- selector10: Selector<TState, TProps, T10>,
- selector11: Selector<TState, TProps, T11>,
- selector12: Selector<TState, TProps, T12>,
- selector13: Selector<TState, TProps, T13>,
- selector14: Selector<TState, TProps, T14>,
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9,
- arg10: T10,
- arg11: T11,
- arg12: T12,
- arg13: T13,
- arg14: T14
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13, T14>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>,
- Selector<TState, TProps, T3>,
- Selector<TState, TProps, T4>,
- Selector<TState, TProps, T5>,
- Selector<TState, TProps, T6>,
- Selector<TState, TProps, T7>,
- Selector<TState, TProps, T8>,
- Selector<TState, TProps, T9>,
- Selector<TState, TProps, T10>,
- Selector<TState, TProps, T11>,
- Selector<TState, TProps, T12>,
- Selector<TState, TProps, T13>,
- Selector<TState, TProps, T14>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9,
- arg10: T10,
- arg11: T11,
- arg12: T12,
- arg13: T13,
- arg14: T14
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- selector3: Selector<TState, TProps, T3>,
- selector4: Selector<TState, TProps, T4>,
- selector5: Selector<TState, TProps, T5>,
- selector6: Selector<TState, TProps, T6>,
- selector7: Selector<TState, TProps, T7>,
- selector8: Selector<TState, TProps, T8>,
- selector9: Selector<TState, TProps, T9>,
- selector10: Selector<TState, TProps, T10>,
- selector11: Selector<TState, TProps, T11>,
- selector12: Selector<TState, TProps, T12>,
- selector13: Selector<TState, TProps, T13>,
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9,
- arg10: T10,
- arg11: T11,
- arg12: T12,
- arg13: T13
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12, T13>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>,
- Selector<TState, TProps, T3>,
- Selector<TState, TProps, T4>,
- Selector<TState, TProps, T5>,
- Selector<TState, TProps, T6>,
- Selector<TState, TProps, T7>,
- Selector<TState, TProps, T8>,
- Selector<TState, TProps, T9>,
- Selector<TState, TProps, T10>,
- Selector<TState, TProps, T11>,
- Selector<TState, TProps, T12>,
- Selector<TState, TProps, T13>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9,
- arg10: T10,
- arg11: T11,
- arg12: T12,
- arg13: T13
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- selector3: Selector<TState, TProps, T3>,
- selector4: Selector<TState, TProps, T4>,
- selector5: Selector<TState, TProps, T5>,
- selector6: Selector<TState, TProps, T6>,
- selector7: Selector<TState, TProps, T7>,
- selector8: Selector<TState, TProps, T8>,
- selector9: Selector<TState, TProps, T9>,
- selector10: Selector<TState, TProps, T10>,
- selector11: Selector<TState, TProps, T11>,
- selector12: Selector<TState, TProps, T12>,
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9,
- arg10: T10,
- arg11: T11,
- arg12: T12
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11, T12>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>,
- Selector<TState, TProps, T3>,
- Selector<TState, TProps, T4>,
- Selector<TState, TProps, T5>,
- Selector<TState, TProps, T6>,
- Selector<TState, TProps, T7>,
- Selector<TState, TProps, T8>,
- Selector<TState, TProps, T9>,
- Selector<TState, TProps, T10>,
- Selector<TState, TProps, T11>,
- Selector<TState, TProps, T12>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9,
- arg10: T10,
- arg11: T11,
- arg12: T12
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- selector3: Selector<TState, TProps, T3>,
- selector4: Selector<TState, TProps, T4>,
- selector5: Selector<TState, TProps, T5>,
- selector6: Selector<TState, TProps, T6>,
- selector7: Selector<TState, TProps, T7>,
- selector8: Selector<TState, TProps, T8>,
- selector9: Selector<TState, TProps, T9>,
- selector10: Selector<TState, TProps, T10>,
- selector11: Selector<TState, TProps, T11>,
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9,
- arg10: T10,
- arg11: T11
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>,
- Selector<TState, TProps, T3>,
- Selector<TState, TProps, T4>,
- Selector<TState, TProps, T5>,
- Selector<TState, TProps, T6>,
- Selector<TState, TProps, T7>,
- Selector<TState, TProps, T8>,
- Selector<TState, TProps, T9>,
- Selector<TState, TProps, T10>,
- Selector<TState, TProps, T11>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9,
- arg10: T10,
- arg11: T11
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- selector3: Selector<TState, TProps, T3>,
- selector4: Selector<TState, TProps, T4>,
- selector5: Selector<TState, TProps, T5>,
- selector6: Selector<TState, TProps, T6>,
- selector7: Selector<TState, TProps, T7>,
- selector8: Selector<TState, TProps, T8>,
- selector9: Selector<TState, TProps, T9>,
- selector10: Selector<TState, TProps, T10>,
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9,
- arg10: T10
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>,
- Selector<TState, TProps, T3>,
- Selector<TState, TProps, T4>,
- Selector<TState, TProps, T5>,
- Selector<TState, TProps, T6>,
- Selector<TState, TProps, T7>,
- Selector<TState, TProps, T8>,
- Selector<TState, TProps, T9>,
- Selector<TState, TProps, T10>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9,
- arg10: T10
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- selector3: Selector<TState, TProps, T3>,
- selector4: Selector<TState, TProps, T4>,
- selector5: Selector<TState, TProps, T5>,
- selector6: Selector<TState, TProps, T6>,
- selector7: Selector<TState, TProps, T7>,
- selector8: Selector<TState, TProps, T8>,
- selector9: Selector<TState, TProps, T9>,
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8, T9>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>,
- Selector<TState, TProps, T3>,
- Selector<TState, TProps, T4>,
- Selector<TState, TProps, T5>,
- Selector<TState, TProps, T6>,
- Selector<TState, TProps, T7>,
- Selector<TState, TProps, T8>,
- Selector<TState, TProps, T9>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8,
- arg9: T9
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- selector3: Selector<TState, TProps, T3>,
- selector4: Selector<TState, TProps, T4>,
- selector5: Selector<TState, TProps, T5>,
- selector6: Selector<TState, TProps, T6>,
- selector7: Selector<TState, TProps, T7>,
- selector8: Selector<TState, TProps, T8>,
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7, T8>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>,
- Selector<TState, TProps, T3>,
- Selector<TState, TProps, T4>,
- Selector<TState, TProps, T5>,
- Selector<TState, TProps, T6>,
- Selector<TState, TProps, T7>,
- Selector<TState, TProps, T8>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7,
- arg8: T8
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- selector3: Selector<TState, TProps, T3>,
- selector4: Selector<TState, TProps, T4>,
- selector5: Selector<TState, TProps, T5>,
- selector6: Selector<TState, TProps, T6>,
- selector7: Selector<TState, TProps, T7>,
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6, T7>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>,
- Selector<TState, TProps, T3>,
- Selector<TState, TProps, T4>,
- Selector<TState, TProps, T5>,
- Selector<TState, TProps, T6>,
- Selector<TState, TProps, T7>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6,
- arg7: T7
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- selector3: Selector<TState, TProps, T3>,
- selector4: Selector<TState, TProps, T4>,
- selector5: Selector<TState, TProps, T5>,
- selector6: Selector<TState, TProps, T6>,
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5, T6>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>,
- Selector<TState, TProps, T3>,
- Selector<TState, TProps, T4>,
- Selector<TState, TProps, T5>,
- Selector<TState, TProps, T6>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5,
- arg6: T6
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- selector3: Selector<TState, TProps, T3>,
- selector4: Selector<TState, TProps, T4>,
- selector5: Selector<TState, TProps, T5>,
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4, T5>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>,
- Selector<TState, TProps, T3>,
- Selector<TState, TProps, T4>,
- Selector<TState, TProps, T5>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4,
- arg5: T5
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- selector3: Selector<TState, TProps, T3>,
- selector4: Selector<TState, TProps, T4>,
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3, T4>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>,
- Selector<TState, TProps, T3>,
- Selector<TState, TProps, T4>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3,
- arg4: T4
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- selector3: Selector<TState, TProps, T3>,
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2, T3>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>,
- Selector<TState, TProps, T3>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2,
- arg3: T3
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2>(
- selector1: Selector<TState, TProps, T1>,
- selector2: Selector<TState, TProps, T2>,
- resultFunc: (
- arg1: T1,
- arg2: T2
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1, T2>(
- selectors: [
- Selector<TState, TProps, T1>,
- Selector<TState, TProps, T2>
- ],
- resultFunc: (
- arg1: T1,
- arg2: T2
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1>(
- selector1: Selector<TState, TProps, T1>,
- resultFunc: (
- arg1: T1
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- <TState, TProps, TResult, T1>(
- selectors: [
- Selector<TState, TProps, T1>
- ],
- resultFunc: (
- arg1: T1
- ) => TResult
- ): Selector<TState, TProps, TResult>;
- };
- type Reselect = {
- createSelector: SelectorCreator;
- defaultMemoize: <TFunc: Function>(
- func: TFunc,
- equalityCheck?: (a: any, b: any) => boolean
- ) => TFunc;
- createSelectorCreator: (
- memoize: Function,
- ...memoizeOptions: any[]
- ) => SelectorCreator;
- createStructuredSelector: <TState, TProps>(
- inputSelectors: {
- [k: string | number]: Selector<TState, TProps, any>
- },
- selectorCreator?: SelectorCreator
- ) => Selector<TState, TProps, any>;
- };
- declare module 'reselect' {
- declare var exports: Reselect;
- }
|