Skip to content

Commit

Permalink
update disabled fields
Browse files Browse the repository at this point in the history
  • Loading branch information
luacmartins committed Jan 25, 2024
1 parent 919676f commit 7fa54c3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/types/onyx/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ type CustomUnit = {
errors?: OnyxCommon.Errors;
};

type DisabledFields = {
defaultBillable?: boolean;
reimbursable?: boolean;
}

type AutoReportingOffset = number | ValueOf<typeof CONST.POLICY.AUTO_REPORTING_OFFSET>;

type Policy = {
Expand Down Expand Up @@ -129,7 +134,7 @@ type Policy = {
description?: string;

/** List of field names that are disabled */
disabledFields?: Record<string, unknown>;
disabledFields?: DisabledFields;

/** Whether new transactions need to be tagged */
requiresTag?: boolean;
Expand Down

0 comments on commit 7fa54c3

Please sign in to comment.