UNPKG

@types/selenium-webdriver

Version:
16 lines (14 loc) 542 B
/** * 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>;