Skip to content

Commit 70b7291

Browse files
committed
fix typings
1 parent 818f069 commit 70b7291

File tree

3 files changed

+14
-11
lines changed

3 files changed

+14
-11
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.1",
3+
"version": "1.0.2",
44
"description": "",
55
"scripts": {
66
"build": "rimraf build && tsc -b"

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

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,23 @@ declare global {
55
namespace WebdriverIO {
66
interface Browser {
77
flutterByValueKey(value: string): Flutter.Locator;
8-
flutterByValueKey$(value: string): WebdriverIO.Element;
9-
flutterByValueKey$$(value: string): WebdriverIO.Element[];
8+
flutterByValueKey$(value: string): Promise<WebdriverIO.Element>;
9+
flutterByValueKey$$(value: string): Promise<WebdriverIO.Element[]>;
1010
flutterBySemanticsLabel(label: string): Flutter.Locator;
11-
flutterBySemanticsLabel$(label: string): WebdriverIO.Element;
12-
flutterBySemanticsLabel$$(label: string): WebdriverIO.Element[];
11+
flutterBySemanticsLabel$(label: string): Promise<WebdriverIO.Element>;
12+
flutterBySemanticsLabel$$(label: string): Promise<WebdriverIO.Element[]>;
1313
flutterByText(text: string): Flutter.Locator;
14-
flutterByText$(text: string): WebdriverIO.Element;
15-
flutterByText$$(text: string): WebdriverIO.Element[];
16-
14+
flutterByText$(text: string): Promise<WebdriverIO.Element>;
15+
flutterByText$$(text: string): Promise<WebdriverIO.Element[]>;
16+
flutterWaitForVisible(options: {
17+
element: WebdriverIO.Element;
18+
locator: Flutter.Locator;
19+
}): Promise<void>;
1720
flutterDoubleClick(element: WebdriverIO.Element): WebdriverIO.Element;
1821
flutterWaitForAbsent(options: {
1922
element: WebdriverIO.Element;
2023
locator: Flutter.Locator;
21-
}): void;
24+
}): Promise<void>;
2225

2326
flutterScrollTillVisible(options: {
2427
finder: WebdriverIO.Element;

0 commit comments

Comments
 (0)