API > wxt/storage > WxtStorageItemOptions
Interface: WxtStorageItemOptions<T>
Contents
Extends
Type parameters
▪ T
Properties
defaultValue
defaultValue?:
T
Value returned from getValue when it would otherwise return null.
Inherited from
Source
migrations
migrations?:
Record<number, (oldValue) =>any>
A map of version numbers to the functions used to migrate the data to that version.
Source
version
version?:
number
Provide a version number for the storage item to enable migrations. When changing the version in the future, migration functions will be ran on application startup.
Source
Generated using typedoc-plugin-markdown and TypeDoc