Skip to content

Commit b4f171d

Browse files
authored
fix: adds tab function to docs and typings
Merge pull request testing-library#184 from GentlemanHal/patch-1
2 parents 3a7b5de + c1aba38 commit b4f171d

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

typings/index.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ export interface IUserOptions {
44
delay?: number;
55
}
66

7+
interface ITabUserOptions {
8+
shift?: boolean;
9+
focusTrap?: Document | Element;
10+
}
11+
712
type TargetElement = Element | Window;
813

914
declare const userEvent: {
@@ -15,6 +20,7 @@ declare const userEvent: {
1520
text: string,
1621
userOpts?: IUserOptions
1722
) => Promise<void>;
23+
tab: (userOpts?: ITabUserOptions) => void;
1824
};
1925

2026
export default userEvent;

0 commit comments

Comments
 (0)