Skip to content

Commit

Permalink
Merge pull request #34844 from Expensify/marcaaron-updateReportTypesF…
Browse files Browse the repository at this point in the history
…orParticiants

Add TS types for new participants object format
  • Loading branch information
grgia authored Jan 26, 2024
2 parents 13b01ff + 87fcf8b commit 9601085
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/types/onyx/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ type Note = {
pendingAction?: OnyxCommon.PendingAction;
};

type Participant = {
hidden: boolean;
role?: 'admin' | 'member';
};

type Participants = Record<number, Participant>;

type Report = {
/** The specific type of chat */
chatType?: ValueOf<typeof CONST.REPORT.CHAT_TYPE>;
Expand Down Expand Up @@ -117,6 +124,7 @@ type Report = {
lastActorAccountID?: number;
ownerAccountID?: number;
ownerEmail?: string;
participants?: Participants;
participantAccountIDs?: number[];
visibleChatMemberAccountIDs?: number[];
total?: number;
Expand Down

0 comments on commit 9601085

Please sign in to comment.