Projekt

Obecné

Profil

Stáhnout (515 Bajtů) Statistiky
| Větev: | Revize:
1
declare const pIsPromise: {
2
	/**
3
	Check if `input` is a ES2015 promise.
4

    
5
	@param input - Value to be checked.
6

    
7
	@example
8
	```
9
	import isPromise = require('p-is-promise');
10

    
11
	isPromise(Promise.resolve('🦄'));
12
	//=> true
13
	```
14
	*/
15
	(input: unknown): input is Promise<unknown>;
16

    
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;
21
};
22

    
23
export = pIsPromise;
(1-1/5)