MCPcopy Create free account
hub / github.com/testing-library/user-event / InterfaceMap

Interface InterfaceMap

src/event/createEvent.ts:9–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7} from './types'
8
9interface 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}
17type InterfaceNames = typeof eventMap[keyof typeof eventMap]['EventType']
18type Interface<k extends InterfaceNames> = k extends keyof InterfaceMap
19 ? InterfaceMap[k]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected