UNPKG

@keplr-ewallet/ewallet-sdk-core

Version:
10 lines (9 loc) 401 B
import type { KeplrEWalletEventTypeMap } from "../types"; export declare class EventEmitter2 { listeners: { [type: string]: Function[]; }; constructor(); on<T extends keyof KeplrEWalletEventTypeMap>(eventName: T, listener: (event: CustomEvent<KeplrEWalletEventTypeMap[T]>) => void): void; emit<T extends keyof KeplrEWalletEventTypeMap>(eventName: T, ...args: any): void; }