CartExt

cart · /core·type

Extension slot that lets adapter authors attach arbitrary provider-specific data to and without widening the core types. Pass a concrete shape as the TExt generic to unlock typed custom fields.

Properties

cart?
unknown
line?
unknown

Example

type ShopifyExt = CartExt & { cart: { checkoutToken: string }; line: { sellingPlanId?: string } };
type ShopifyCart = Cart<ShopifyExt>;

RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter

Sourcetypes.ts:47Edit the JSDoc directly

On this page