@testing-library/user-event
Version:
Fire events the same way the user does
16 lines (15 loc) • 448 B
TypeScript
declare enum clickableInputTypes {
'button' = "button",
'color' = "color",
'file' = "file",
'image' = "image",
'reset' = "reset",
'submit' = "submit",
'checkbox' = "checkbox",
'radio' = "radio"
}
export type ClickableInputOrButton = HTMLButtonElement | (HTMLInputElement & {
type: clickableInputTypes;
});
export declare function isClickableInput(element: Element): element is ClickableInputOrButton;
export {};