expect-webdriverio 4.2.1 → 4.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/package.json +1 -1
- package/types/expect-webdriverio.d.ts +1 -1
- package/types/standalone.d.ts +2 -3
package/README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
# expect-webdriverio
|
|
1
|
+
# expect-webdriverio [](https://github.com/webdriverio/expect-webdriverio/actions/workflows/test.yml)
|
|
2
2
|
|
|
3
|
-
[](https://github.com/webdriverio/expect-webdriverio/actions/workflows/test.yml)
|
|
4
3
|
|
|
5
4
|
###### [API](docs/API.md) | [TypeScript / JS Autocomplete](/docs/Types.md) | [Examples](docs/Examples.md) | [Extending Matchers](/docs/Extend.md)
|
|
6
5
|
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
declare namespace ExpectWebdriverIO {
|
|
2
|
-
function expect<T extends Promise<void>>(actual: T): Matchers<
|
|
2
|
+
function expect<T = unknown, R extends void | Promise<void> = void | Promise<void>>(actual: T): Matchers<R, T>
|
|
3
3
|
function setOptions(options: DefaultOptions): void
|
|
4
4
|
|
|
5
5
|
interface DefaultOptions {
|
package/types/standalone.d.ts
CHANGED
|
@@ -2,17 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
type ChainablePromiseElement = import('webdriverio').ChainablePromiseElement<WebdriverIO.Element>
|
|
4
4
|
type ChainablePromiseArray = import('webdriverio').ChainablePromiseArray<WebdriverIO.Element>
|
|
5
|
-
type ExpectType = WebdriverIO.Element | Promise<WebdriverIO.Element> | ChainablePromiseElement | ChainablePromiseArray
|
|
6
5
|
|
|
7
6
|
declare namespace ExpectWebdriverIO {
|
|
8
|
-
interface Matchers<R extends Promise<void>, T> extends Readonly<import('expect').Matchers<R>> {
|
|
7
|
+
interface Matchers<R extends void | Promise<void>, T> extends Readonly<import('expect').Matchers<R>> {
|
|
9
8
|
not: Matchers<R, T>
|
|
10
9
|
resolves: Matchers<R, T>
|
|
11
10
|
rejects: Matchers<R, T>
|
|
12
11
|
}
|
|
13
12
|
|
|
14
13
|
type Expect = {
|
|
15
|
-
<T
|
|
14
|
+
<T = unknown, R extends void | Promise<void> = void | Promise<void>>(actual: T): Matchers<R, T>
|
|
16
15
|
extend(map: Record<string, Function>): void
|
|
17
16
|
} & AsymmetricMatchers
|
|
18
17
|
|