Skip to content

Commit

Permalink
Use PromiseLike<T> intead of Promise<T>. Fixes #39 (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
rkatic committed Apr 27, 2020
1 parent 1fc71a4 commit 5a240f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
@@ -1,2 +1,2 @@
declare function isPromise<T, S>(obj: Promise<T> | S): obj is Promise<T>;
export default isPromise;
declare function isPromise<T, S>(obj: PromiseLike<T> | S): obj is PromiseLike<T>;
export default isPromise;

0 comments on commit 5a240f6

Please sign in to comment.