package.dist.keyboard.shared.fireInputEvent.d.ts Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of user-event Show documentation
Show all versions of user-event Show documentation
Fire events the same way the user does
The newest version!
import { fireEvent } from '@testing-library/dom';
export declare function fireInputEvent(element: HTMLElement, { newValue, newSelectionStart, eventOverrides, }: {
newValue: string;
newSelectionStart: number;
eventOverrides: Partial[1]> & {
[k: string]: unknown;
};
}): void;
declare const initial: unique symbol;
declare const onBlur: unique symbol;
declare global {
interface Element {
[initial]?: string;
[onBlur]?: EventListener;
}
}
export {};