@types/testing-library__user-event
Advanced tools
Comparing version 4.1.0 to 4.1.1
// Type definitions for @testing-library/user-event 4.1 | ||
// Project: https://github.com/testing-library/user-event | ||
// Definitions by: Wu Haotian <https://github.com/whtsky> | ||
// Weyert de Boer <https://github.com/weyert> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
export interface UserOpts { | ||
export interface UserOptions { | ||
allAtOnce?: boolean; | ||
@@ -11,9 +12,15 @@ delay?: number; | ||
type TargetElement = Element | Window; | ||
declare const userEvent: { | ||
click: (element: Element | Window) => void; | ||
dblClick: (element: Element | Window) => void; | ||
selectOptions: (element: Element | Window, values: string | string[]) => void; | ||
type: (element: Element | Window, text: string, userOpts?: UserOpts) => Promise<void>; | ||
click: (element: TargetElement) => void; | ||
dblClick: (element: TargetElement) => void; | ||
selectOptions: (element: TargetElement, values: string | string[]) => void; | ||
type: ( | ||
element: TargetElement, | ||
text: string, | ||
userOpts?: UserOptions, | ||
) => Promise<void>; | ||
}; | ||
export default userEvent; |
{ | ||
"name": "@types/testing-library__user-event", | ||
"version": "4.1.0", | ||
"version": "4.1.1", | ||
"description": "TypeScript definitions for @testing-library/user-event", | ||
@@ -11,2 +11,7 @@ "license": "MIT", | ||
"githubUsername": "whtsky" | ||
}, | ||
{ | ||
"name": "Weyert de Boer", | ||
"url": "https://github.com/weyert", | ||
"githubUsername": "weyert" | ||
} | ||
@@ -23,4 +28,4 @@ ], | ||
"dependencies": {}, | ||
"typesPublisherContentHash": "739b6ced73da1432684d4a85b90dc30ad77aa34045015efb0e6635a8af1ee011", | ||
"typesPublisherContentHash": "610533f33a78d176dfb5a8b2aec3f2ffd32a4b4afb44a9a29b22bbeba1476e9c", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -11,3 +11,3 @@ # Installation | ||
Additional Details | ||
* Last updated: Wed, 26 Jun 2019 12:54:25 GMT | ||
* Last updated: Thu, 15 Aug 2019 18:09:41 GMT | ||
* Dependencies: none | ||
@@ -17,2 +17,2 @@ * Global values: none | ||
# Credits | ||
These definitions were written by Wu Haotian <https://github.com/whtsky>. | ||
These definitions were written by Wu Haotian <https://github.com/whtsky>, and Weyert de Boer <https://github.com/weyert>. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3439
21