Skip to content

API > wxt/storage > WxtStorageItemOptions

Interface: WxtStorageItemOptions<T>

Contents

Type parameters

T

Properties

defaultValue

defaultValue: T

Source

packages/wxt/src/storage.ts:628


migrations

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

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

Source

packages/wxt/src/storage.ts:637


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

packages/wxt/src/storage.ts:633


Generated using typedoc-plugin-markdown and TypeDoc