@hairy/react-lib 1.7.1 → 1.7.2
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 +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -158,7 +158,7 @@ interface StoreDefine<S extends object, A extends Actions<S> = Record<string, an
|
|
|
158
158
|
interface StoreOptions {
|
|
159
159
|
persistant?: string;
|
|
160
160
|
}
|
|
161
|
-
type Actions<S> = Record<string, (this: S) => void>;
|
|
161
|
+
type Actions<S> = Record<string, (this: S, ...args: any) => void>;
|
|
162
162
|
type Store<S, A> = A & {
|
|
163
163
|
$subscribe: (listener: (state: S) => void) => () => void;
|
|
164
164
|
$patch: (patch: Partial<S> | ((state: S) => void)) => void;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hairy/react-lib",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.2",
|
|
5
5
|
"description": "Library for react",
|
|
6
6
|
"author": "Hairyf <wwu710632@gmail.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"react-dom": "^18.2.0",
|
|
39
39
|
"react-i18next": "^14.1.2",
|
|
40
40
|
"react-use": "^17.6.0",
|
|
41
|
-
"@hairy/utils": "1.7.
|
|
41
|
+
"@hairy/utils": "1.7.2"
|
|
42
42
|
},
|
|
43
43
|
"scripts": {
|
|
44
44
|
"build": "tsup",
|