UNPKG

@testing-library/user-event

Version:
16 lines (15 loc) 462 B
declare enum clickableInputTypes { 'button' = "button", 'color' = "color", 'file' = "file", 'image' = "image", 'reset' = "reset", 'submit' = "submit", 'checkbox' = "checkbox", 'radio' = "radio" } export declare type ClickableInputType = keyof typeof clickableInputTypes; export declare function isClickableInput(element: Element): element is HTMLButtonElement | (HTMLInputElement & { type: clickableInputTypes; }); export {};