Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/jsutils/isPromise.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
* Returns true if the value acts like a Promise, i.e. has a "then" function,
* otherwise returns false.
*/
export function isPromise(value: any): value is Promise<unknown> {
export function isPromise(value: any): value is PromiseLike<unknown> {
return typeof value?.then === 'function';
}