CartEventType

cart · /core·type

Union of the string literal type discriminants for every variant. Use as a constraint when narrowing to a specific event type or when parameterizing .

Definition

@nordcom/commerce-cart

CartEvent['type']

Example

function subscribe(bus: CartEventBus, type: CartEventType) {
  return bus.on(type, (event) => console.log(event));
}

RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter

Sourceevents.ts:35Edit the JSDoc directly

On this page