| 7 | } from './types' |
| 8 | |
| 9 | interface InterfaceMap { |
| 10 | ClipboardEvent: {type: ClipboardEvent, init: ClipboardEventInit} |
| 11 | InputEvent: {type: InputEvent, init: InputEventInit} |
| 12 | MouseEvent: {type: MouseEvent, init: MouseEventInit} |
| 13 | PointerEvent: {type: PointerEvent, init: PointerEventInit} |
| 14 | KeyboardEvent: {type: KeyboardEvent, init: KeyboardEventInit} |
| 15 | FocusEvent: {type: FocusEvent, init: FocusEventInit} |
| 16 | } |
| 17 | type InterfaceNames = typeof eventMap[keyof typeof eventMap]['EventType'] |
| 18 | type Interface<k extends InterfaceNames> = k extends keyof InterfaceMap |
| 19 | ? InterfaceMap[k] |
nothing calls this directly
no outgoing calls
no test coverage detected