index.d.ts 285 B

12345678910111213141516
  1. /**
  2. Check if `value` is a ES2015 promise.
  3. @param value - Value to be checked.
  4. @example
  5. ```
  6. import isPromise = require('p-is-promise');
  7. isPromise(Promise.resolve('🦄'));
  8. //=> true
  9. ```
  10. */
  11. declare function pIsPromise(value: unknown): value is Promise<unknown>;
  12. export = pIsPromise;