Skip to content

Type Alias: StorageCompact

StorageCompact = Pick<Storage, "getItem" | "setItem">

Defined in: store/src/types/types.ts:16

Represents the minimal subset of the Storage interface required for persistence.

Any object implementing this type can be used as a storage engine, making the Store compatible with localStorage, sessionStorage, or custom file-based implementations.