UNPKG

coolink

Version:

Coocaa Coolink APP JavaScript library

15 lines (14 loc) 420 B
export interface BusCache { [busName: string]: Function[]; } export declare class Bus { private _busId; private _pool; register(callback: Function, name?: string): string; fire(name: string, ...args: any[]): any[]; has(name: string, callback?: Function): boolean; remove(name: string, callback?: Function): void; clear(): void; } declare const bus: Bus; export default bus;