e2ed
Version:
E2E testing framework over Playwright
10 lines (9 loc) • 378 B
TypeScript
import type { Thenable } from '../types/internal';
/**
* Returns `true`, if value is array, and `false` otherwise.
*/
export declare function isArray<Type>(value: unknown): value is Type[];
/**
* Returns `true`, if value is thenable (an object with a `then` method), and `false` otherwise.
*/
export declare function isThenable<Type>(value: Type): value is Type & Thenable;