8000 [Flow] Add undefined as a possible return value from find and findLas… · immutable-js/immutable-js@c45a572 · GitHub
[go: up one dir, main page]

Skip to content

Commit c45a572

Browse files
authored
[Flow] Add undefined as a possible return value from find and findLast (#2015)
1 parent bde3119 commit c45a572

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

type-definitions/immutable.js.flow

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -224,12 +224,12 @@ declare class _Collection<K, +V> implements ValueObject {
224224
predicate: (value: V, key: K, iter: this) => mixed,
225225
context?: mixed,
226226
notSetValue?: NSV
227-
): V | NSV;
227+
): V | NSV | void;
228228
findLast<NSV>(
229229
predicate: (value: V, key: K, iter: this) => mixed,
230230
context?: mixed,
231231
notSetValue?: NSV
232-
): V | NSV;
232+
): V | NSV | void;
233233

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

0 commit comments

Comments
 (0)
0