@testing-library/user-event
Version: 
Fire events the same way the user does
15 lines (14 loc) • 514 B
TypeScript
declare enum maxLengthSupportedTypes {
    'email' = "email",
    'password' = "password",
    'search' = "search",
    'telephone' = "telephone",
    'text' = "text",
    'url' = "url"
}
type ElementWithMaxLengthSupport = HTMLTextAreaElement | (HTMLInputElement & {
    type: maxLengthSupportedTypes;
});
export declare function getMaxLength(element: ElementWithMaxLengthSupport): number | undefined;
export declare function supportsMaxLength(element: Element): element is ElementWithMaxLengthSupport;
export {};