API > wxt/utils/storage > defineMigrations
Function: defineMigrations()
defineMigrations<
TValue>():DefineMigrations<TValue>
Chain-checked migrations for WxtStorageItemOptions.migrations. Overloads validate that each migration's return type matches the next migration's parameter, and that the final return matches TValue. Runtime is an identity wrapper — all work is at the type level.
Type parameters
▪ TValue
Source
packages/storage/dist/index.d.mts:21
Generated using typedoc-plugin-markdown and TypeDoc