UNPKG

react-keep-alive

Version:

Package will allow components to maintain their status, to avoid repeated re-rendering.

11 lines (10 loc) 495 B
declare type Listener = (...args: any) => void; export default function createEventEmitter(): { on: (eventNames: string | string[], listener: Listener, direction?: boolean) => void; off: (eventNames: string | string[], listener: Listener) => void; emit: (eventNames: string | string[], ...args: any) => void; clear: () => void; listenerCount: (eventNames: string | string[]) => number; removeAllListeners: (eventNames: string | string[]) => void; }; export {};