Skip to content

@checkout-kit/core / Store

Interface: Store<T> ​

Extends ​

Type Parameters ​

Type Parameter
T

Methods ​

getSnapshot() ​

ts
getSnapshot(): T;

Returns ​

T

Inherited from ​

ReadonlyStore.getSnapshot


set() ​

ts
set(patch): void;

Parameters ​

ParameterType
patchPartial<T>

Returns ​

void


subscribe() ​

ts
subscribe(listener): () => void;

Parameters ​

ParameterType
listener() => void

Returns ​

() => void

Inherited from ​

ReadonlyStore.subscribe

Apache-2.0 · Headless engine, provider adapters and runnable examples.