mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-21 21:31:12 +08:00
Removed a couple of function return types.
Removed a couple of function return types because they could return a promise or a value.
This commit is contained in:
6
selenium-webdriver/selenium-webdriver.d.ts
vendored
6
selenium-webdriver/selenium-webdriver.d.ts
vendored
@@ -1264,13 +1264,13 @@ declare module webdriver {
|
||||
* evaluate on each iteration of the wait loop.
|
||||
* @constructor
|
||||
*/
|
||||
constructor(message: string, fn: (webdriver: WebDriver) => T);
|
||||
constructor(message: string, fn: (webdriver: WebDriver) => any);
|
||||
|
||||
/** @return {string} A description of this condition. */
|
||||
description(): string;
|
||||
|
||||
/** @type {function(!webdriver.WebDriver): OUT} */
|
||||
fn(webdriver: WebDriver): T;
|
||||
fn(webdriver: WebDriver): any;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -3243,7 +3243,7 @@ declare module webdriver {
|
||||
* @template T
|
||||
*/
|
||||
wait<T>(condition: webdriver.until.Condition<T>, timeout: number, opt_message?: string): webdriver.promise.Promise<T>;
|
||||
wait<T>(condition: (webdriver: WebDriver) => T, timeout: number, opt_message?: string): webdriver.promise.Promise<T>;
|
||||
wait<T>(condition: (webdriver: WebDriver) => any, timeout: number, opt_message?: string): webdriver.promise.Promise<T>;
|
||||
|
||||
/**
|
||||
* Schedules a command to make the driver sleep for the given amount of time.
|
||||
|
||||
Reference in New Issue
Block a user