@testing-library/user-event
Version:
Fire events the same way the user does
16 lines (15 loc) • 683 B
TypeScript
import { type EditableInputOrTextarea } from '../../utils';
export { getInputRange } from './getInputRange';
export { modifySelection } from './modifySelection';
export { moveSelection } from './moveSelection';
export { setSelectionPerMouseDown } from './setSelectionPerMouse';
export { modifySelectionPerMouseMove } from './modifySelectionPerMouse';
export { isAllSelected, selectAll } from './selectAll';
export { setSelectionRange } from './setSelectionRange';
export { setSelection } from './setSelection';
export { updateSelectionOnFocus } from './updateSelectionOnFocus';
export type SelectionRange = {
node: EditableInputOrTextarea;
start: number;
end: number;
};