Skip to content

Commit

Permalink
Add comments to onyx types
Browse files Browse the repository at this point in the history
  • Loading branch information
blazejkustra committed Oct 20, 2023
1 parent 233d703 commit f137763
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/types/onyx/PersonalDetails.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ type PersonalDetails = {
/** Timezone of the current user from their personal details */
timezone?: Timezone;

/** Status of the current user from their personal details */
status?: string;
};

Expand Down
15 changes: 14 additions & 1 deletion src/types/onyx/Report.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,25 @@ type Report = {
participantAccountIDs?: number[];
total?: number;
currency?: string;
iouReportAmount?: number;

/** Whether the report is waiting on a bank account */
isWaitingOnBankAccount?: boolean;

/** Whether the last message was deleted */
isLastMessageDeletedParentAction?: boolean;

/** The ID of the IOU report */
iouReportID?: string;

/** Total amount of money owed for IOU report */
iouReportAmount?: number;

/** Pending fields for the report */
pendingFields?: Record<string, OnyxCommon.PendingAction>;

/** The ID of the preexisting report (it is possible that we optimistically created a Report for which a report already exists) */
preexistingReportID?: string;

/** If the report contains nonreimbursable expenses, send the nonreimbursable total */
nonReimbursableTotal?: number;
};
Expand Down

0 comments on commit f137763

Please sign in to comment.