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>
9 lines
293 B
TypeScript
9 lines
293 B
TypeScript
import initSubscriber, { subscribe, Subscribe, Unsubscribe } from 'redux-subscriber';
|
|
|
|
const subscribe2: Subscribe = initSubscriber({});
|
|
const unsubscribe: Unsubscribe = subscribe('', state => {});
|
|
const unsubscribe2: Unsubscribe = subscribe2('', state => {});
|
|
|
|
unsubscribe();
|
|
unsubscribe2();
|