diff --git a/src/app/shared/types/CartType.js b/src/app/shared/types/CartType.js index 044ac04f..92d21f86 100644 --- a/src/app/shared/types/CartType.js +++ b/src/app/shared/types/CartType.js @@ -1,11 +1,8 @@ // @flow strict -import type { Action } from 'redux'; +import type { ActionType } from '@/shared/types/CommonType'; export type CartType = { quantity: number }; -export type CartActionType = { - ...$Exact>, - ...$Exact -}; +export type CartActionType = ActionType; diff --git a/src/app/store/modules/cart/reducers/cart.test.js b/src/app/store/modules/cart/reducers/cart.test.js index 40475d10..8da1c07d 100644 --- a/src/app/store/modules/cart/reducers/cart.test.js +++ b/src/app/store/modules/cart/reducers/cart.test.js @@ -7,7 +7,7 @@ describe('cart reducer', () => { }; it('should return initial state', () => { - const initialState = cart(undefined, { type: '', quantity: 0 }); + const initialState = cart(undefined, { type: '', payload: { quantity: 0 } }); expect(initialState).toStrictEqual(expectedState); });