CreateTypedCartActionsOpts
Construction options for . Wires together the
kernel, storage, and request-context factory that the typed action surface
needs; optional authBridge and messageLocalizer let hosts attach identity
resolution and i18n without coupling the cart layer to a specific auth or
translation library.
Properties
Example
const opts: CreateTypedCartActionsOpts<{}, MyShop> = {
kernel,
storage: httpOnlyCookieStorage(),
resolveContext: async ({ idempotencyKey } = {}) => ({ shop, locale, idempotencyKey }),
};Related
AuthBridge CartIdStorage FormCartActions HttpOnlyCookieStorageOpts NextEventBridge TypedCartActions NextEventBridgeHandlers createCartEnsurer
createFormCartActions
Wraps a surface in zeroJS FormData adapters. Each wrapper parses the form, mints a serverside idempotency key, and forwards the typed call — so the same action
createTypedCartActions
Builds the typed, JSONarg serveraction surface for cartnext hosts. Each returned method threads the supplied idempotencyKey into via resolveContext({ idempotenc