Improve return def of context and contexts mobile method

This commit is contained in:
RonanDrouglazet
2017-12-15 11:04:33 +01:00
parent 22f0a1d2eb
commit 36a4064714
+2 -2
View File
@@ -793,8 +793,8 @@ declare namespace WebdriverIO {
interface Client<T> {
background(seconds: number): Client<T>;
closeApp(): Client<T>;
context(id?: string): Client<T>;
contexts(): Client<T>;
context(id?: string): Client<T> & RawResult<string>;
contexts(): Client<T> & RawResult<string[]>;
currentActivity(): any;
deviceKeyEvent(keyValue: number): Client<T>;
getAppStrings(language: string): Client<T>;