Skip to content

Commit

Permalink
fix(TS): add TypeScript userEvent.clear definition (#250)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdh1011 committed May 8, 2020
1 parent bc6a003 commit 7df771f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions typings/index.d.ts
Expand Up @@ -12,6 +12,7 @@ export interface ITabUserOptions {
export type TargetElement = Element | Window;

declare const userEvent: {
clear: (element: TargetElement) => void;
click: (element: TargetElement) => void;
dblClick: (element: TargetElement) => void;
selectOptions: (element: TargetElement, values: string | string[]) => void;
Expand Down

0 comments on commit 7df771f

Please sign in to comment.