Kumbatio
Generated reference

Persistence

Built-in EnergyPersistence adapters.

Every export of @kumbatio/energy-system/persistence, generated from the declarations of the installed package (v2.1.1).

import { localStoragePersistence, memoryPersistence } from '@kumbatio/energy-system/persistence'

2 value exports and 0 type exports.

Functions

localStoragePersistence

export declare function localStoragePersistence(key?: string): EnergyPersistence;

localStorage-based persistence adapter. Stores the full EnergyState as JSON.

memoryPersistence

export declare function memoryPersistence(initial?: EnergyState): EnergyPersistence;

In-memory persistence adapter. Useful for tests, SSR, or ephemeral sessions.