UNPKG
is-promise
Version:
latest (4.0.0)
4.0.0
3.0.0
2.2.2
2.2.1
2.2.0
2.1.0
2.0.0
1.0.1
1.0.0
Test whether an object looks like a promises-a+ promise
github.com/then/is-promise
then/is-promise
is-promise
/
index.d.ts
3 lines
(2 loc)
•
108 B
TypeScript
View Raw
1
2
3
declare function
isPromise
<
T
,
S
>(
obj: PromiseLike<T> | S
): obj
is
PromiseLike<T>
; export
default
isPromise;