@w3ux/utils 2.0.9 → 2.0.10
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/package.json +5 -6
- package/unit.d.cts +2 -2
- package/unit.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@w3ux/utils",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.10",
|
|
4
4
|
"license": "GPL-3.0-only",
|
|
5
|
-
"
|
|
6
|
-
"dedot": "^0.8.1"
|
|
7
|
-
},
|
|
8
|
-
"main": "index.cjs",
|
|
9
|
-
"module": "index.js",
|
|
5
|
+
"type": "module",
|
|
10
6
|
"exports": {
|
|
11
7
|
".": {
|
|
12
8
|
"import": "./index.js",
|
|
13
9
|
"require": "./index.cjs"
|
|
14
10
|
}
|
|
11
|
+
},
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"dedot": "^0.8.1"
|
|
15
14
|
}
|
|
16
15
|
}
|
package/unit.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
2
|
import { AnyObject } from './types.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -44,7 +44,7 @@ declare const snakeToCamel: (str: string) => string;
|
|
|
44
44
|
* @name setStateWithRef
|
|
45
45
|
* @summary Synchronize React state and its reference with the provided value.
|
|
46
46
|
*/
|
|
47
|
-
declare const setStateWithRef: <T>(value: T, setState: (_state: T) => void, ref:
|
|
47
|
+
declare const setStateWithRef: <T>(value: T, setState: (_state: T) => void, ref: RefObject<T>) => void;
|
|
48
48
|
/**
|
|
49
49
|
* @name localStorageOrDefault
|
|
50
50
|
* @summary Retrieve the local stroage value with the key, return defult value if it is not
|
package/unit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
2
|
import { AnyObject } from './types.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
@@ -44,7 +44,7 @@ declare const snakeToCamel: (str: string) => string;
|
|
|
44
44
|
* @name setStateWithRef
|
|
45
45
|
* @summary Synchronize React state and its reference with the provided value.
|
|
46
46
|
*/
|
|
47
|
-
declare const setStateWithRef: <T>(value: T, setState: (_state: T) => void, ref:
|
|
47
|
+
declare const setStateWithRef: <T>(value: T, setState: (_state: T) => void, ref: RefObject<T>) => void;
|
|
48
48
|
/**
|
|
49
49
|
* @name localStorageOrDefault
|
|
50
50
|
* @summary Retrieve the local stroage value with the key, return defult value if it is not
|