Skip to content

Commit

Permalink
Covariant MaybePromise<T>
Browse files Browse the repository at this point in the history
Since Promise<T> is Covariant, this should also be. Solves flow errors when trying to introduce MaybePromise<T> into more places within the executor.
  • Loading branch information
leebyron committed Feb 21, 2018
1 parent 5ec393e commit c2c01e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsutils/MaybePromise.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
* @flow strict
*/

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

0 comments on commit c2c01e7

Please sign in to comment.