6 lines
188 B
TypeScript
6 lines
188 B
TypeScript
/**
|
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
* otherwise returns false.
|
|
*/
|
|
export declare function isPromise(value: any): value is Promise<unknown>;
|