Files
screenshot-tools/node_modules/bare-events/global.d.ts
Frank John Begornia c926590e1d first commit
2025-12-23 01:51:15 +08:00

16 lines
450 B
TypeScript

import * as events from './web'
type EventConstructor = typeof events.Event
type CustomEventConstructor = typeof events.CustomEvent
type EventTargetConstructor = typeof events.EventTarget
declare global {
type Event = events.Event
type CustomEvent<T = any> = events.CustomEvent<T>
type EventTarget = events.EventTarget
const Event: EventConstructor
const CustomEvent: CustomEventConstructor
const EventTarget: EventTargetConstructor
}