API > wxt/utils/storage > GetItemOptions
Interface: GetItemOptions<T>
Contents
Type parameters
▪ T
Properties
defaultValue
defaultValue?:
DeepReadonly<T>
Deprecated
Renamed to fallback, use it instead.
Accepts either the mutable T or a deep-readonly variant — useful when copying a defineItem-captured narrow-readonly fallback in directly.
Source
packages/storage/dist/index.d.mts:109
fallback
fallback?:
DeepReadonly<T>
Default value returned when getItem would otherwise return null.
Accepts either the mutable T or a deep-readonly variant — useful when copying a defineItem-captured narrow-readonly fallback in directly.
Source
packages/storage/dist/index.d.mts:116
Generated using typedoc-plugin-markdown and TypeDoc