Skip to content

Commit 34fe605

Browse files
committed
change types to chainablepromise
1 parent a0d0582 commit 34fe605

File tree

4 files changed

+11
-68
lines changed

4 files changed

+11
-68
lines changed

flutter-by/wdio-flutter-by-service/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

flutter-by/wdio-flutter-by-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wdio-flutter-by-service",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"description": "",
55
"scripts": {
66
"build": "rimraf build && tsc -b"

flutter-by/wdio-flutter-by-service/src/index.ts

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
import { FlutterIntergrationDriverService } from './service.js';
2+
import { ChainablePromiseElement } from 'webdriverio';
23
export default FlutterIntergrationDriverService;
34

45
declare global {
56
namespace WebdriverIO {
67
interface Browser {
78
flutterByValueKey(value: string): Flutter.Locator;
8-
flutterByValueKey$(value: string): Promise<WebdriverIO.Element>;
9-
flutterByValueKey$$(value: string): Promise<WebdriverIO.Element[]>;
9+
flutterByValueKey$(value: string): ChainablePromiseElement<WebdriverIO.Element>;
10+
flutterByValueKey$$(value: string): ChainablePromiseElement<WebdriverIO.Element[]>;
1011
flutterBySemanticsLabel(label: string): Flutter.Locator;
11-
flutterBySemanticsLabel$(label: string): Promise<WebdriverIO.Element>;
12-
flutterBySemanticsLabel$$(label: string): Promise<WebdriverIO.Element[]>;
12+
flutterBySemanticsLabel$(label: string): ChainablePromiseElement<WebdriverIO.Element>;
13+
flutterBySemanticsLabel$$(label: string): ChainablePromiseElement<WebdriverIO.Element[]>;
1314
flutterByText(text: string): Flutter.Locator;
14-
flutterByText$(text: string): Promise<WebdriverIO.Element>;
15-
flutterByText$$(text: string): Promise<WebdriverIO.Element[]>;
15+
flutterByText$(text: string): ChainablePromiseElement<WebdriverIO.Element>;
16+
flutterByText$$(text: string): ChainablePromiseElement<WebdriverIO.Element[]>;
1617
flutterWaitForVisible(options: {
1718
element: WebdriverIO.Element;
1819
timeout?: number;
@@ -31,7 +32,7 @@ declare global {
3132
maxScrolls?: number;
3233
settleBetweenScrollsTimeout?: number;
3334
dragDuration?: number;
34-
}): Promise<WebdriverIO.Element | null>;
35+
}): ChainablePromiseElement<WebdriverIO.Element | null>;
3536
}
3637
interface Element {
3738
flutterByValueKey(value: string): Flutter.Locator;

typings/index.d.ts

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)