Skip to content

Commit

Permalink
fix typescript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
robertrytovuori committed Jun 26, 2024
1 parent 1e16005 commit 7818378
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/creditDecision/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const isFetchingHistoryByBusinessIdReducer: Reducer<IsFetchingHistoryMap> = hand
}: FetchHistoryByBusinessIdAction) => ({ ...state,
[id]: true
}),
// @ts-ignore: No overload matches this call

['mvj/creditDecision/RECEIVE_HISTORY_BY_BUSINESS_ID']: (state: IsFetchingHistoryMap, {
payload
}: ReceiveHistoryByBusinessIdAction) => ({ ...state,
Expand All @@ -35,7 +35,6 @@ const isFetchingHistoryByContactIdReducer: Reducer<IsFetchingHistoryMap> = handl
}: FetchHistoryByContactIdAction) => ({ ...state,
[id]: true
}),
// @ts-ignore: No overload matches this call
['mvj/creditDecision/RECEIVE_HISTORY_BY_CONTACT_ID']: (state: IsFetchingHistoryMap, {
payload
}: ReceiveHistoryByContactIdAction) => ({ ...state,
Expand All @@ -62,7 +61,6 @@ const isFetchingCreditDecisionByBusinessIdReducer: Reducer<IsFetchingCreditDecis
}: FetchCreditDecisionByBusinessIdAction) => ({ ...state,
[id]: true
}),
// @ts-ignore: No overload matches this call
['mvj/creditDecision/RECEIVE_CREDIT_DECISION_BY_BUSINESS_ID']: (state: IsFetchingCreditDecisionMap, {
payload
}: ReceiveCreditDecisionByBusinessIdAction) => ({ ...state,
Expand All @@ -89,7 +87,6 @@ const isFetchingCreditDecisionByContactIdReducer: Reducer<IsFetchingCreditDecisi
}: FetchCreditDecisionByContactIdAction) => ({ ...state,
[id]: true
}),
// @ts-ignore: No overload matches this call
['mvj/creditDecision/RECEIVE_CREDIT_DECISION_BY_CONTACT_ID']: (state: IsFetchingCreditDecisionMap, {
payload
}: ReceiveCreditDecisionByContactIdAction) => ({ ...state,
Expand All @@ -116,7 +113,6 @@ const isFetchingCreditDecisionByNinReducer: Reducer<IsFetchingCreditDecisionMap>
}: FetchCreditDecisionByNinAction) => ({ ...state,
[id]: true
}),
// @ts-ignore: No overload matches this call
['mvj/creditDecision/RECEIVE_CREDIT_DECISION_BY_NIN']: (state: IsFetchingCreditDecisionMap, {
payload
}: ReceiveCreditDecisionByNinAction) => ({ ...state,
Expand Down
4 changes: 2 additions & 2 deletions src/creditDecision/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ export type CreditDecisionState = {
isFetchingHistoryByBusinessId: IsFetchingHistoryMap;
isFetchingHistoryByContactId: IsFetchingHistoryMap;
};
export type HistoryDataMap = Record<string, Record<string, any>>;
export type HistoryDataMap = any;
export type IsFetchingHistoryMap = Record<string, boolean>;
export type CreditDecisionDataMap = Record<string, Record<string, any>>;
export type CreditDecisionDataMap = any;
export type IsFetchingCreditDecisionMap = Record<string, boolean>;
export type FetchHistoryByBusinessIdAction = Action<string, string>;
export type FetchHistoryByContactIdAction = Action<string, string>;
Expand Down

0 comments on commit 7818378

Please sign in to comment.