UNPKG

react-redux-methods

Version:

A lightweight react-redux toolkit for writing strong-typed, minimal code redux boilerplate.

5 lines (4 loc) 331 B
type GetValueResponse<T> = T extends (...args: any[]) => infer R ? R : never; type TCreateStateSelectorFn = <S, SL extends Record<string, (...args: any[]) => any>>(state: S, selectors: SL) => <K extends keyof SL>(selector: K) => GetValueResponse<SL[K]>; export declare const createStateSelector: TCreateStateSelectorFn; export {};