diff --git a/webdriverio/index.d.ts b/webdriverio/index.d.ts
index fbc6925fa9..1c1c5c1eb8 100644
--- a/webdriverio/index.d.ts
+++ b/webdriverio/index.d.ts
@@ -1,4 +1,4 @@
-// Type definitions for webdriverio 4.4.0
+// Type definitions for webdriverio 4.5.0
// Project: http://www.webdriver.io/
// Definitions by: Nick Malaguti
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -243,18 +243,61 @@ declare namespace WebdriverIO {
// Mobile
export interface Client {
- // flick
- // flickDown
- // flickLeft
- // flickRight
- // flickUp
- // getGeoLocation
- // getOrientation
- // hold
- // release
- // setGeoLocation
- // setOrientation
- // touch
+ background(seconds: number): Client;
+ closeApp(): Client;
+ context(id?: string): Client;
+ contexts(): Client;
+ currentActivity(): any;
+ deviceKeyEvent(keyValue: number): Client;
+ getAppStrings(language: string): Client;
+ getCurrentDeviceActivity(): Client;
+ getDeviceTime(): Client;
+ getGeoLocation(): Client;
+ getNetworkConnection(): Client;
+ getOrientation(): Client;
+ hideDeviceKeyboard(strategy: 'tapOutside' | 'pressKey'): Client;
+ hold(selector: string): Client;
+ installApp(path: string): Client;
+ isAppInstalled(bundleId: string): Client;
+ isLocked(): boolean;
+ launch(): Client;
+ lock(seconds: number): Client;
+ longPressKeycode(keyCode: string, metaState: string): Client;
+ openNotifications(): Client;
+ orientation(setTo?: 'landscape' | 'portrait'): 'landscape' | 'portrait';
+ performMultiAction(touchAttributes: any): Client;
+ performTouchAction(touchAttributes: any): Client;
+ pressKeycode(keyCode: string, metaState: string): Client;
+ pullFile(path: string): Client;
+ pullFolder(path: string): Client;
+ pushFile(path: string, data: any): Client;
+ release(selector: string): Client;
+ removeApp(bundleId: string): Client;
+ reset(): Client;
+ rotate(x: number, y: number, duration?: number, radius?: number, rotation?: number, touchCount?: number): Client;
+ setGeoLocation(location: { latitude: number, longitude: number, altitude: number }): Client;
+ setImmediateValue(id: string, value: string | Array): Client;
+ setNetworkConnection(flags: 0 | 1 | 2 | 4 | 6): Client;
+ setOrientation(setTo: 'landscape' | 'portrait'): Client;
+ settings(settings?: { [key: string]: string }): Client;
+ shake(): Client;
+ startActivity(appPackage: string, activity: string): Client;
+ strings(language: string): Client;
+ swipe(selector?: string, xOffset?: number, yOffset?: number, speed?: number): Client;
+ swipeDown(selector: string, speed?: number): Client;
+ swipeLeft(selector: string, speed?: number): Client;
+ swipeRight(selector: string, speed?: number): Client;
+ swipeUp(selector: string, speed?: number): Client;
+ toggleAirplaneMode(): Client;
+ toggleData(): Client;
+ toggleLocationServices(): Client;
+ toggleWiFi(): Client;
+ touch(selector: string, longClick: boolean): Client;
+ touchAction(selector: string, action: 'tap' | 'press'): Client;
+ touchId(validFingerprint?: boolean): Client;
+ touchMultiPerform(actions: any): Client;
+ touchPerform(actions: any): Client;
+ unlock(): Client;
}
export interface CssProperty {