Files
NapCatQQ/.pnpm-store/v3/files/bb/a6b955d20c7ac80b55505aa1e3a56f6a7ca69dbba2aa61dbbad56096cf769cc747474f5ce86cc4eef475bb03dabd04a9a1d2815287f1c1860a3ba37a2dcdd1
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

8 lines
398 B
Plaintext

export declare class TypedEventEmitter<E extends Record<string, any>> {
private emitter;
on<K extends keyof E>(event: K, listener: (payload: E[K]) => void): () => void;
once<K extends keyof E>(event: K, listener: (payload: E[K]) => void): void;
off<K extends keyof E>(event: K, listener: (payload: E[K]) => void): void;
emit<K extends keyof E>(event: K, payload: E[K]): void;
}