DefinitelyTyped/types/redux-subscriber/index.d.ts
thisissami 6684c8c0ef
added definitions for redux-subscriber (#44534)
* added definitions for redux-subscriber

* added one set of functions to the tests

* Update types/redux-subscriber/index.d.ts

Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com>

Co-authored-by: Nathan Shively-Sanders <293473+sandersn@users.noreply.github.com>
Co-authored-by: Piotr Błażejewicz (Peter Blazejewicz) <peterblazejewicz@users.noreply.github.com>
2020-05-11 10:30:21 -07:00

12 lines
442 B
TypeScript

// Type definitions for redux-subscriber 1.1
// Project: https://github.com/ivantsov/redux-subscriber#readme
// Definitions by: thisissami <https://github.com/thisissami>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export type Unsubscribe = () => void;
export type Subscribe = (key: string, cb: (state: any) => void) => Unsubscribe;
export default function(store: any): Subscribe;
export const subscribe: Subscribe;