use-json-localstorage 1.3.2 → 1.3.3
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.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -9,6 +9,6 @@ type LocalStorageEvent = {
|
|
|
9
9
|
};
|
|
10
10
|
declare const getRuntimeLocalStorage: () => SerializeStorage;
|
|
11
11
|
|
|
12
|
-
declare const useLocalStorageValue: <T>(key: string, defaultValue
|
|
12
|
+
declare const useLocalStorageValue: <T>(key: string, defaultValue?: T) => T | undefined;
|
|
13
13
|
|
|
14
14
|
export { getRuntimeLocalStorage, useLocalStorageValue };
|
package/dist/index.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ type LocalStorageEvent = {
|
|
|
9
9
|
};
|
|
10
10
|
declare const getRuntimeLocalStorage: () => SerializeStorage;
|
|
11
11
|
|
|
12
|
-
declare const useLocalStorageValue: <T>(key: string, defaultValue
|
|
12
|
+
declare const useLocalStorageValue: <T>(key: string, defaultValue?: T) => T | undefined;
|
|
13
13
|
|
|
14
14
|
export { getRuntimeLocalStorage, useLocalStorageValue };
|
package/dist/index.js
CHANGED