Skip to content

Commit

Permalink
fix(type): only return Promise with delay (fixes #480)
Browse files Browse the repository at this point in the history
  • Loading branch information
ljosberinn authored and nickmccurdy committed Nov 11, 2020
1 parent a28d338 commit 7d4c6f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@ declare const userEvent: {
files: FilesArgument,
init?: UploadInitArgument,
) => void
type: (
type: <T extends ITypeOpts>(
element: TargetElement,
text: string,
userOpts?: ITypeOpts,
) => Promise<void>
userOpts?: T,
) => T extends {delay: number} ? Promise<void> : void
tab: (userOpts?: ITabUserOptions) => void
paste: (
element: TargetElement,
Expand Down

0 comments on commit 7d4c6f1

Please sign in to comment.