1 declare const pIsPromise: {
3 Check if `input` is a ES2015 promise.
5 @param input - Value to be checked.
9 import isPromise = require('p-is-promise');
11 isPromise(Promise.resolve('🦄'));
15 (input: unknown): input is Promise<unknown>;
17 // TODO: Remove this for the next major release, refactor the whole definition to:
18 // declare function pIsPromise(input: unknown): input is Promise<unknown>;
19 // export = pIsPromise;
20 default: typeof pIsPromise;