Skip to content

Commit 7df771f

Browse files
authored
fix(TS): add TypeScript userEvent.clear definition (testing-library#250)
1 parent bc6a003 commit 7df771f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

typings/index.d.ts

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ export interface ITabUserOptions {
1212
export type TargetElement = Element | Window;
1313

1414
declare const userEvent: {
15+
clear: (element: TargetElement) => void;
1516
click: (element: TargetElement) => void;
1617
dblClick: (element: TargetElement) => void;
1718
selectOptions: (element: TargetElement, values: string | string[]) => void;

0 commit comments

Comments
 (0)