Skip to content

API > wxt/utils/storage > WatchCallback

Type alias: WatchCallback<T> ​

WatchCallback<T>: (newValue, oldValue) => void

Callback called when a value in storage is changed.

Type parameters ​

Parameter
T

Parameters ​

▪ newValue: T

▪ oldValue: T

Source ​

packages/storage/dist/index.d.mts:244


Generated using typedoc-plugin-markdown and TypeDoc