@statesync/persistence / StorageUsage
Interface: StorageUsage
Defined in: persistence/src/types.ts:236
Storage usage information reported by a backend.
Provides insight into how much storage is consumed and what the browser quota is, useful for monitoring and alerting before quota is exceeded.
Properties
percentage?
ts
optional percentage: number;Defined in: persistence/src/types.ts:254
Usage as a percentage (0--100), calculated as (used / quota) * 100.
Only present when quota is known.
quota?
ts
optional quota: number;Defined in: persistence/src/types.ts:247
Total storage quota in bytes, if the browser reports it.
May be undefined if the backend or environment does not expose quota information.
used
ts
used: number;Defined in: persistence/src/types.ts:240
Number of bytes currently used by this backend's stored data.
