File: index.d.ts

package info (click to toggle)
node-p-is-promise 3.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 128 kB
  • sloc: javascript: 81; makefile: 2
file content (16 lines) | stat: -rw-r--r-- 285 bytes parent folder | download | duplicates (2)
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;