2025-04-01 23:48:10 -04:00

17 lines
285 B
TypeScript

/**
Check if `value` is a ES2015 promise.
@param value - Value to be checked.
@example
```
import isPromise = require('p-is-promise');
isPromise(Promise.resolve('🦄'));
//=> true
```
*/
declare function pIsPromise(value: unknown): value is Promise<unknown>;
export = pIsPromise;