GitHub

daffCartStoreCreditReducer

The reducer for the cart store credit page state, see DaffCartStoreCreditReducerState.

import { daffCartStoreCreditReducer } from '@daffodil/cart-store-credit/state'
const daffCartStoreCreditReducer: <T extends DaffCartWithStoreCredit = DaffCartWithStoreCredit>(state: DaffOperationState, action: DaffCartStoreCreditActions<T>) => DaffOperationState