From eb5c073ab086bdf3dfb2ac48c6d4fa5b6e56e99e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dagur=20P=C3=A1ll=20Ammendrup?= Date: Wed, 28 Aug 2024 13:17:20 -0400 Subject: [PATCH] Update find() and findLast() in flow definitions --- type-definitions/immutable.js.flow | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/type-definitions/immutable.js.flow b/type-definitions/immutable.js.flow index d829304f81..22422909be 100644 --- a/type-definitions/immutable.js.flow +++ b/type-definitions/immutable.js.flow @@ -220,16 +220,16 @@ declare class _Collection implements ValueObject { context?: mixed ): Map; - find( + find( predicate: (value: V, key: K, iter: this) => mixed, context?: mixed, - notSetValue?: NSV - ): V | NSV | void; - findLast( + notSetValue?: V + ): V | void; + findLast( predicate: (value: V, key: K, iter: this) => mixed, context?: mixed, - notSetValue?: NSV - ): V | NSV | void; + notSetValue?: V + ): V | void; findEntry(predicate: (value: V, key: K, iter: this) => mixed): [K, V] | void; findLastEntry(