Skip to content

Commit

Permalink
Merge pull request #37932 from Expensify/cmartins-improveTS
Browse files Browse the repository at this point in the history
[No QA] Use correct TS types
  • Loading branch information
luacmartins authored Mar 7, 2024
2 parents 9d56f35 + b7d9e0e commit 941c5a2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/libs/actions/Policy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ import type {
ReportAction,
Transaction,
} from '@src/types/onyx';
import type {Errors} from '@src/types/onyx/OnyxCommon';
import type {Errors, PendingAction} from '@src/types/onyx/OnyxCommon';
import type {OriginalMessageJoinPolicyChangeLog} from '@src/types/onyx/OriginalMessage';
import type {Attributes, CustomUnit, Rate, Unit} from '@src/types/onyx/Policy';
import type {OnyxData} from '@src/types/onyx/Request';
Expand Down Expand Up @@ -750,7 +750,7 @@ function updateWorkspaceMembersRole(policyID: string, accountIDs: number[], newR
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.POLICY_MEMBERS}${policyID}`,
value: {
...memberRoles.reduce((member: Record<number, {role: string; pendingAction: string | null}>, current) => {
...memberRoles.reduce((member: Record<number, {role: string; pendingAction: PendingAction}>, current) => {
// eslint-disable-next-line no-param-reassign
member[current.accountID] = {role: current?.role, pendingAction: CONST.RED_BRICK_ROAD_PENDING_ACTION.UPDATE};
return member;
Expand All @@ -765,7 +765,7 @@ function updateWorkspaceMembersRole(policyID: string, accountIDs: number[], newR
onyxMethod: Onyx.METHOD.MERGE,
key: `${ONYXKEYS.COLLECTION.POLICY_MEMBERS}${policyID}`,
value: {
...memberRoles.reduce((member: Record<number, {role: string; pendingAction: string | null}>, current) => {
...memberRoles.reduce((member: Record<number, {role: string; pendingAction: PendingAction}>, current) => {
// eslint-disable-next-line no-param-reassign
member[current.accountID] = {role: current?.role, pendingAction: null};
return member;
Expand Down

0 comments on commit 941c5a2

Please sign in to comment.