From 43d6a1a2f7b583c6e85cc0f1b735872cae3a4c0f Mon Sep 17 00:00:00 2001 From: Atul Madhugiri Date: Mon, 20 Nov 2023 15:31:38 -0500 Subject: [PATCH] [lib] Update `useResolvedThreadInfosObj` return type Summary: One of the changes from https://gist.github.com/Ashoat/efa03bb380aa602abe2499770b9ddfbd. Separating into separate diff because the other change caused some cascading `flow` issues in `native`... which I'll address in separate diff. Test Plan: flow Reviewers: ashoat Reviewed By: ashoat Subscribers: tomek Differential Revision: https://phab.comm.dev/D9935 --- lib/utils/entity-helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils/entity-helpers.js b/lib/utils/entity-helpers.js index 20f1e69f4e..d93d2756ba 100644 --- a/lib/utils/entity-helpers.js +++ b/lib/utils/entity-helpers.js @@ -93,7 +93,7 @@ function useResolvedOptionalThreadInfos( function useResolvedThreadInfosObj( threadInfosObj: { +[id: string]: ThreadInfo }, options?: ?UseENSNamesOptions, -): { +[id: string]: ResolvedThreadInfo } { +): { +[id: string]: ResolvedThreadInfo | MinimallyEncodedResolvedThreadInfo } { const threadInfosArray = React.useMemo( () => values(threadInfosObj), [threadInfosObj],