UNPKG

@hocgin/taro-kit

Version:
12 lines (11 loc) 466 B
export declare enum EventKey { UPDATE_USER = "UPDATE_USER" } export declare class EventKit { static trigger<Event extends EventKey>(eventKey: Event): void; static on<Event extends EventKey>(eventKey: Event, func: (...args: []) => void): void; static off<Event extends EventKey>(eventKey: Event, func?: (...args: []) => void): void; static updateUser(): void; static onUpdateUser(func: any): void; static offUpdateUser(func: any): void; }