File: index.d.ts

package info (click to toggle)
node-p-is-promise 3.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 124 kB
  • sloc: makefile: 2
file content (16 lines) | stat: -rw-r--r-- 285 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
Check if `value` is a ES2015 promise.

@param value - Value to be checked.

@example
```
import isPromise = require('p-is-promise');

isPromise(Promise.resolve('🦄'));
//=> true
```
*/
declare function pIsPromise(value: unknown): value is Promise<unknown>;

export = pIsPromise;