Archived
Private
Public Access
1
0

Finished WindowAPI for the frontend

This commit is contained in:
2022-10-24 22:57:17 +02:00
parent 0fd41608b9
commit e27992ffdb
246 changed files with 1067505 additions and 39 deletions

View File

@@ -0,0 +1,11 @@
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;
}