CreateCartOpts
●cart · /core·interface
Configuration bag passed to . Declares the adapter, optional middleware pipeline, and an optional logger override for the internal event bus.
Properties
PROPTYPEDESCRIPTION
Example
const opts: CreateCartOpts = {
adapter: myAdapter,
middleware: [logger(), retry({ attempts: 3, backoffMs: 200 })],
};
const kernel = createCart(opts);Related
RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter
MetadataOpen in GitHub ↗
compose
Koastyle middleware composer: each layer wraps the next in registration order. With compose(a, b)(terminal), execution flows a → b → terminal and unwinds in rev
createCart
Builds a cart kernel bound to one adapter. The kernel is the hostfacing surface: it routes typed s to adapter methods, gates mutations against , runs the middle