From a2f8e1b17023bf2b50dc40607faa4bdc3e5f0780 Mon Sep 17 00:00:00 2001 From: Simon Gellis Date: Sun, 5 Feb 2017 19:59:53 -0500 Subject: [PATCH] Fixes build for selenium-webdriver on typescript@2.0 --- selenium-webdriver/index.d.ts | 2 +- selenium-webdriver/tsconfig.json | 1 + selenium-webdriver/v2/tsconfig.json | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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,