minutool 1.0.30 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -193,6 +193,14 @@ export declare const bindKeyUp: (element: EventTarget | string, payload: (event:
193
193
  */
194
194
  export declare const bindNodeMove: (element: HTMLElement | string, handle?: HTMLElement | string | null) => () => void;
195
195
 
196
+ /**
197
+ * 为指定的 localStorage key 绑定变化事件
198
+ * @param key - localStorage 的 key
199
+ * @param callback - 回调,参数为新的值
200
+ * @returns { destroy } - 解绑函数
201
+ */
202
+ export declare const bindStorageEvent: (key: string, callback: (value: string | null) => void) => (() => void);
203
+
196
204
  /**
197
205
  * 转换 Blob 数据到 Base64 Data URL
198
206
  * @param {Blob} blob - Blob 对象