Skip to main content
zerotal

Documentation


Documentation / @zerotal/flow / store / FlowStore

Interface: FlowStore

Defined in: flow/src/store.ts:37

The shape of the global client store ($flow.store). Declare your namespaces by augmenting this interface, which makes every $flow.store.* access fully typed:

// resources/js/env.d.ts — augment the /store subpath, where the interface is declared.
declare module "@zerotal/flow/store" {
  interface FlowStore {
    ui: { dark: boolean; sidebar: boolean };
    cart: { count: number };
  }
}