import { DaffCartRetrievalActionTransformedInjection } from '@daffodil/cart/state'
Represents an injection of a retrieval action that doesn't implement the DaffCartRetrievalAction
interface.
Contains a way to get the cart from the action.
interface DaffCartRetrievalActionTransformedInjection<T extends Action = Action> {
type: T["type"]
transform: <TCart extends DaffCart = DaffCart>(action: T) => Partial<TCart>
}
type T["type"] |
---|
The action type. |
transform <TCart extends DaffCart = DaffCart>(action: T) => Partial<TCart> |
---|
A function that gets the retrieved cart from the action. |