@types/selenium-webdriver
Version:
TypeScript definitions for selenium-webdriver
16 lines (14 loc) • 542 B
TypeScript
/**
* Determines whether a {@code value} should be treated as an object.
* @param {?} value The value to test.
* @returns {boolean} Whether the value is an object.
*/
export function isObject(value: any): value is object;
/**
* Determines whether a {@code value} should be treated as a promise.
* Any object whose "then" property is a function will be considered a promise.
*
* @param {?} value The value to test.
* @return {boolean} Whether the value is a promise.
*/
export function isPromise(value: any): value is Promise<any>;