Skip to content

Interface: StorageConfig ​

Defined in: storage/create-storage.ts:55

The options every storage instance takes.

Properties ​

PropertyTypeDefault valueDescriptionDefined in
crossTab?booleanfalse, true for local storageWhether changes made outside the instance, as in another tab, notify its listeners.storage/create-storage.ts:64
onError?ErrorHandlerundefinedCalled with whatever the adapter throws. Without it, the failure passes silently.storage/create-storage.ts:66
prefix?string''Added to every key before the adapter sees it. A key outside it belongs to something else, so keys does not list it and clear does not remove it.storage/create-storage.ts:62

Released under the MIT License.