UNPKG

use-app-events

Version:

Create custom events and reactive variables in vanilla JavaScript and React.

10 lines (9 loc) 287 B
import { Listener } from '../types'; type Heap = { /** The array of listeners used by active `listenForEvents` instances. */ eventListeners: Listener<any>[]; /** Reset the heap to its initial state. */ reset: () => void; }; declare const heap: Heap; export default heap;