( element: Element, )
| 16 | | (HTMLInputElement & {type: clickableInputTypes}) |
| 17 | |
| 18 | export function isClickableInput( |
| 19 | element: Element, |
| 20 | ): element is ClickableInputOrButton { |
| 21 | return ( |
| 22 | isElementType(element, 'button') || |
| 23 | (isElementType(element, 'input') && element.type in clickableInputTypes) |
| 24 | ) |
| 25 | } |
no test coverage detected