Archived
Private
Public Access
1
0
This repository has been archived on 2026-02-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
WebDesktop/WindowAPI/dist/helper/functions/WindowEventEmitter.d.ts

12 lines
546 B
TypeScript

import { WindowEventName } from "../PackageTypes.js";
import { WindowEvent } from "../EventData.js";
export declare type WindowEventListener = (event: WindowEvent) => void;
export declare abstract class WindowEventEmitter {
protected _events: {
[name: string]: WindowEventListener[];
};
abstract on(name: WindowEventName, listener: WindowEventListener): void;
abstract removeListener(name: WindowEventName, listenerToRemove: WindowEventListener): void;
abstract emit(name: WindowEventName, data: WindowEvent): void;
}