mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
* 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>
12 lines
442 B
TypeScript
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;
|