Skip to content

API > wxt/storage > WxtStorageItemOptions

Interface: WxtStorageItemOptions<T>

Contents

Type parameters

T

Properties

defaultValue

defaultValue: T

Source

src/storage.ts:627


migrations

migrations?: Record<number, (oldValue) => any>

A map of version numbers to the functions used to migrate the data to that version.

Source

src/storage.ts:636


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

src/storage.ts:632


Generated using typedoc-plugin-markdown and TypeDoc