Skip to content

Commit d23a342

Browse files
committed
Document add approver params
1 parent 1739a99 commit d23a342

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

src/libs/actions/IOU/ReportWorkflow.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1842,16 +1842,37 @@ function assignReportToMe(
18421842
}
18431843

18441844
type AddReportApproverOptions = {
1845+
/** Expense report whose approver is being changed. */
18451846
report: OnyxTypes.Report;
1847+
1848+
/** Email of the approver being added. */
18461849
newApproverEmail: string;
1850+
1851+
/** Account ID of the approver being added. */
18471852
newApproverAccountID: number;
1853+
1854+
/** Account ID of the user changing the approver. */
18481855
accountID: number;
1856+
1857+
/** Email of the user changing the approver. */
18491858
email: string;
1859+
1860+
/** Policy associated with the expense report. */
18501861
policy: OnyxEntry<OnyxTypes.Policy>;
1862+
1863+
/** Whether the report currently has violations. */
18511864
hasViolations: boolean;
1865+
1866+
/** Whether ASAP Submit beta behavior is enabled. */
18521867
isASAPSubmitBetaEnabled: boolean;
1868+
1869+
/** Existing next-step data used to roll back optimistic updates on failure. */
18531870
reportCurrentNextStepDeprecated: OnyxEntry<OnyxTypes.ReportNextStepDeprecated>;
1871+
1872+
/** Whether the current user is in the track intent onboarding state. */
18541873
isTrackIntentUser: boolean | undefined;
1874+
1875+
/** Locale-aware formatter used for optimistic approver display names. */
18551876
formatPhoneNumber: LocaleContextProps['formatPhoneNumber'];
18561877
};
18571878

0 commit comments

Comments
 (0)