Files
GNX-mailEnterprise/frontend/node_modules/@testing-library/user-event/dist/utils/edit/selectionRange.d.ts
Iliyan Angelov c67067a2a4 Mail
2025-09-14 23:24:25 +03:00

17 lines
568 B
TypeScript

declare enum selectionSupportType {
'text' = "text",
'search' = "search",
'url' = "url",
'tel' = "tel",
'password' = "password"
}
export declare function hasSelectionSupport(element: Element): element is HTMLTextAreaElement | (HTMLInputElement & {
type: selectionSupportType;
});
export declare function getSelectionRange(element: Element): {
selectionStart: number | null;
selectionEnd: number | null;
};
export declare function setSelectionRange(element: Element, newSelectionStart: number, newSelectionEnd: number): void;
export {};