You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.d.ts 515B

1234567891011121314151617181920212223
  1. declare const pIsPromise: {
  2. /**
  3. Check if `input` is a ES2015 promise.
  4. @param input - Value to be checked.
  5. @example
  6. ```
  7. import isPromise = require('p-is-promise');
  8. isPromise(Promise.resolve('🦄'));
  9. //=> true
  10. ```
  11. */
  12. (input: unknown): input is Promise<unknown>;
  13. // TODO: Remove this for the next major release, refactor the whole definition to:
  14. // declare function pIsPromise(input: unknown): input is Promise<unknown>;
  15. // export = pIsPromise;
  16. default: typeof pIsPromise;
  17. };
  18. export = pIsPromise;