9 lines
331 B
TypeScript
9 lines
331 B
TypeScript
|
import { $EventManager, $EventMap } from "./$EventManager";
|
||
|
import { $EventTarget } from "./$EventTarget";
|
||
|
|
||
|
export class $Window<EM extends $WindowEventMap = $WindowEventMap> extends $EventTarget<EM, WindowEventMap> {
|
||
|
static $ = new $Window();
|
||
|
readonly dom = window;
|
||
|
}
|
||
|
|
||
|
export interface $WindowEventMap extends $EventMap {}
|