UNPKG

react-application-core

Version:

A react-based application core for the business applications.

21 lines (20 loc) 661 B
import { AnyT, IAutoUnsubscribingWrapper, ICallbackWrapper, IConditionWrapper, IEventNameWrapper } from '../definitions.interface'; /** * @stable [17.01.2020] */ export declare enum SyntheticEmitterEventsEnum { REFRESH = "refresh", SCROLL = "scroll" } /** * @stable [17.01.2020] */ export interface IEventEmitterSubscribeEntity extends IAutoUnsubscribingWrapper, ICallbackWrapper, IConditionWrapper<(...args: AnyT[]) => boolean>, IEventNameWrapper { } /** * @stable [17.01.2020] */ export interface IEventEmitter { emit(event: string, ...args: AnyT[]): void; subscribe(cfg: IEventEmitterSubscribeEntity): () => void; }