summaryrefslogtreecommitdiff
path: root/bin/wiki/ImportarDesdeURL/node_modules/p-is-promise/index.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'bin/wiki/ImportarDesdeURL/node_modules/p-is-promise/index.d.ts')
-rw-r--r--bin/wiki/ImportarDesdeURL/node_modules/p-is-promise/index.d.ts23
1 files changed, 23 insertions, 0 deletions
diff --git a/bin/wiki/ImportarDesdeURL/node_modules/p-is-promise/index.d.ts b/bin/wiki/ImportarDesdeURL/node_modules/p-is-promise/index.d.ts
new file mode 100644
index 00000000..662d9e0c
--- /dev/null
+++ b/bin/wiki/ImportarDesdeURL/node_modules/p-is-promise/index.d.ts
@@ -0,0 +1,23 @@
+declare const pIsPromise: {
+ /**
+ Check if `input` is a ES2015 promise.
+
+ @param input - Value to be checked.
+
+ @example
+ ```
+ import isPromise = require('p-is-promise');
+
+ isPromise(Promise.resolve('🦄'));
+ //=> true
+ ```
+ */
+ (input: unknown): input is Promise<unknown>;
+
+ // TODO: Remove this for the next major release, refactor the whole definition to:
+ // declare function pIsPromise(input: unknown): input is Promise<unknown>;
+ // export = pIsPromise;
+ default: typeof pIsPromise;
+};
+
+export = pIsPromise;