8000 Update find() and findLast() in flow definitions (#2017) · immutable-js/immutable-js@0983b39 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0983b39

Browse files
authored
Update find() and findLast() in flow definitions (#2017)
1 parent c45a572 commit 0983b39

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

type-definitions/immutable.js.flow

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -220,16 +220,16 @@ declare class _Collection<K, +V> implements ValueObject {
220220
context?: mixed
221221
): Map<G, number>;
222222

223-
find<NSV>(
223+
find(
224224
predicate: (value: V, key: K, iter: this) => mixed,
225225
context?: mixed,
226-
notSetValue?: NSV
227-
): V | NSV | void;
228-
findLast<NSV>(
226+
notSetValue?: V
227+
): V | void;
228+
findLast(
229229
predicate: (value: V, key: K, iter: this) => mixed,
230230
context?: mixed,
231-
notSetValue?: NSV
232-
): V | NSV | void;
231+
notSetValue?: V
232+
): V | void;
233233

234234
findEntry(predicate: (value: V, key: K, iter: this) => mixed): [K, V] | void;
235235
findLastEntry(

0 commit comments

Comments
 (0)
0