@testing-library/user-event
Version:
Fire events the same way the user does
11 lines (10 loc) • 350 B
TypeScript
/**
* Determine which selection logic and selection ranges to consider.
*/
export declare function getTargetTypeAndSelection(node: Node): {
readonly type: "input";
readonly selection: import("../../document").UISelectionRange;
} | {
readonly type: "contenteditable" | "default";
readonly selection: Selection | null | undefined;
};