Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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;