Navigation Menu

Skip to content

Commit

Permalink
fix: adds tab function to docs and typings
Browse files Browse the repository at this point in the history
Merge pull request #184 from GentlemanHal/patch-1
  • Loading branch information
Gpx committed Dec 20, 2019
2 parents 3a7b5de + c1aba38 commit b4f171d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions typings/index.d.ts
Expand Up @@ -4,6 +4,11 @@ export interface IUserOptions {
delay?: number;
}

interface ITabUserOptions {
shift?: boolean;
focusTrap?: Document | Element;
}

type TargetElement = Element | Window;

declare const userEvent: {
Expand All @@ -15,6 +20,7 @@ declare const userEvent: {
text: string,
userOpts?: IUserOptions
) => Promise<void>;
tab: (userOpts?: ITabUserOptions) => void;
};

export default userEvent;

0 comments on commit b4f171d

Please sign in to comment.