From c512b7ef0fdc5d08c777b4b83583cf684ec5e7c5 Mon Sep 17 00:00:00 2001 From: Marc Glasser Date: Fri, 19 Jan 2024 14:45:17 -1000 Subject: [PATCH] Add TS types for new participants object format --- src/types/onyx/Report.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/types/onyx/Report.ts b/src/types/onyx/Report.ts index b1571e7514e4..36c71056055a 100644 --- a/src/types/onyx/Report.ts +++ b/src/types/onyx/Report.ts @@ -13,6 +13,13 @@ type Note = { pendingAction?: OnyxCommon.PendingAction; }; +type Participant = { + hidden: boolean; + role?: 'admin' | 'member'; +}; + +type Participants = Record; + type Report = { /** The specific type of chat */ chatType?: ValueOf; @@ -117,6 +124,7 @@ type Report = { lastActorAccountID?: number; ownerAccountID?: number; ownerEmail?: string; + participants?: Participants; participantAccountIDs?: number[]; visibleChatMemberAccountIDs?: number[]; total?: number;