2022-12-22 12:08:00 +01:00

6 lines
196 B
TypeScript

/* eslint-disable @typescript-eslint/no-explicit-any */
export interface ISignal<T = void> {
on(handler: (data?: T) => void, thisArg: any): void;
off(handler: (data?: T) => void): void;
}