diff --git a/typings/index.d.ts b/typings/index.d.ts index f8ffea14..8fef3d9e 100644 --- a/typings/index.d.ts +++ b/typings/index.d.ts @@ -4,6 +4,11 @@ export interface IUserOptions { delay?: number; } +interface ITabUserOptions { + shift?: boolean; + focusTrap?: Document | Element; +} + type TargetElement = Element | Window; declare const userEvent: { @@ -15,6 +20,7 @@ declare const userEvent: { text: string, userOpts?: IUserOptions ) => Promise; + tab: (userOpts?: ITabUserOptions) => void; }; export default userEvent;