Skip to content

Commit cc01536

Browse files
authored
fix(TS): add init type for click() (testing-library#274)
1 parent ee8aa5c commit cc01536

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: typings/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export type TargetElement = Element | Window;
1313

1414
declare const userEvent: {
1515
clear: (element: TargetElement) => void;
16-
click: (element: TargetElement) => void;
16+
click: (element: TargetElement, init?: MouseEventInit) => void;
1717
dblClick: (element: TargetElement) => void;
1818
selectOptions: (element: TargetElement, values: string | string[]) => void;
1919
type: (

0 commit comments

Comments
 (0)