UNPKG

@anew/hooks

Version:

AnewJS React Hooks

14 lines (13 loc) 394 B
import { AnyStore } from './types'; export default class Subscription<S extends AnyStore> { private store; private unsubscribe; private listeners; onStateChange?: (...args: any) => any; constructor(store: S); notifyNestedSubs(): void; handleChangeWrapper: () => void; isSubscribed(): boolean; trySubscribe(): void; tryUnsubscribe(): void; }