UNPKG

reakit-utils

Version:

Reakit utils

7 lines (6 loc) 156 B
/** * Checks whether `arg` is a promise or not. * * @returns {boolean} */ export declare function isPromise<T>(arg: T | Promise<T>): arg is Promise<T>;