Skip to content

Commit c2c01e7

Browse files
committed
Covariant MaybePromise<T>
Since Promise<T> is Covariant, this should also be. Solves flow errors when trying to introduce MaybePromise<T> into more places within the executor.
1 parent 5ec393e commit c2c01e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jsutils/MaybePromise.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
* @flow strict
88
*/
99

10-
export type MaybePromise<T> = Promise<T> | T;
10+
export type MaybePromise<+T> = Promise<T> | T;

0 commit comments

Comments
 (0)