diff --git a/selenium-webdriver/index.d.ts b/selenium-webdriver/index.d.ts index 12eaa03ada..6f31b751a9 100644 --- a/selenium-webdriver/index.d.ts +++ b/selenium-webdriver/index.d.ts @@ -4015,7 +4015,7 @@ export class WebDriver { * rejected if the condition times out. * @template T */ - wait(condition: promise.Promise | Condition | ((driver: WebDriver) => T | Promise) | Function, opt_timeout?: number, opt_message?: string): promise.Promise; + wait(condition: PromiseLike | Condition | ((driver: WebDriver) => T | PromiseLike) | Function, opt_timeout?: number, opt_message?: string): promise.Promise; /** * Schedules a command to make the driver sleep for the given amount of time. diff --git a/selenium-webdriver/tsconfig.json b/selenium-webdriver/tsconfig.json index 223a4d8293..af95a57736 100644 --- a/selenium-webdriver/tsconfig.json +++ b/selenium-webdriver/tsconfig.json @@ -5,6 +5,7 @@ "lib": [ "es6" ], + "target": "es6", "noImplicitAny": true, "noImplicitThis": false, "strictNullChecks": false, diff --git a/selenium-webdriver/v2/tsconfig.json b/selenium-webdriver/v2/tsconfig.json index ed49d9d2b8..e1c6dcdce1 100644 --- a/selenium-webdriver/v2/tsconfig.json +++ b/selenium-webdriver/v2/tsconfig.json @@ -4,6 +4,7 @@ "lib": [ "es6" ], + "target": "es6", "noImplicitAny": true, "noImplicitThis": false, "strictNullChecks": false,