@testing-library/user-event
Version:
Fire events the same way the user does
10 lines (9 loc) • 348 B
TypeScript
declare const patched: unique symbol;
declare global {
interface HTMLElement {
readonly [patched]?: Pick<HTMLElement, 'focus' | 'blur'>;
}
}
export declare function patchFocus(HTMLElement: typeof globalThis['HTMLElement']): void;
export declare function restoreFocus(HTMLElement: typeof globalThis['HTMLElement']): void;
export {};