Created
November 20, 2018 21:06
-
-
Save beaucollins/9d518019c6cad205d69c663d715be00a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/src/lib/tree-select/index.js.flow b/src/lib/tree-select/index.js.flow | |
| index 7bfb4bdf..589679c8 100644 | |
| --- a/src/lib/tree-select/index.js.flow | |
| +++ b/src/lib/tree-select/index.js.flow | |
| @@ -16,7 +16,7 @@ | |
| * returns an array of values to be used in the Computation as well | |
| * as the values used by the caching/memoization layer. | |
| */ | |
| -type DependentsSelector<S, D> = S => D; | |
| +type DependentsSelector<S, O, D> = (S, ...O) => D; | |
| /** | |
| * Function that computes a value based on the dependent values provided | |
| @@ -55,6 +55,6 @@ type CachedSelector<S, R, O> = (S, ...O) => R; | |
| * as the rest. | |
| */ | |
| declare export default function treeSelect<S, D: Array<*>, R, O: Array<*>>( | |
| - DependentsSelector<S, D>, | |
| + DependentsSelector<S, O, D>, | |
| Computation<D, R, O> | |
| ): CachedSelector<S, R, O>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment