@cclr/atom-react 0.1.49 → 0.1.50
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/lib/type/index.d.ts +5 -4
- package/package.json +5 -5
package/lib/type/index.d.ts
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { TAtom } from '@cclr/atom';
|
|
2
|
-
export { createAtom } from '@cclr/atom';
|
|
2
|
+
export { TAtom, createAtom } from '@cclr/atom';
|
|
3
|
+
import { TAny } from '@cclr/lang';
|
|
3
4
|
|
|
4
|
-
declare const useAtom: <T extends
|
|
5
|
+
declare const useAtom: <T extends TAny = TAny>(atom: TAtom<T>) => readonly [T, (v: T | ((value: T) => T), autoTrigger?: boolean) => () => void];
|
|
5
6
|
|
|
6
|
-
declare const useSet: <T extends
|
|
7
|
+
declare const useSet: <T extends TAny = TAny>(atom: TAtom<T>) => (v: T | ((value: T) => T), autoTrigger?: boolean) => () => void;
|
|
7
8
|
|
|
8
|
-
declare const useValue: <T extends
|
|
9
|
+
declare const useValue: <T extends TAny = TAny>(atom: TAtom<T>) => T;
|
|
9
10
|
|
|
10
11
|
export { useAtom, useSet, useValue };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cclr/atom-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.50",
|
|
4
4
|
"description": "> react data modal",
|
|
5
5
|
"author": "cclr <18843152354@163.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -27,11 +27,11 @@
|
|
|
27
27
|
"g:test": "vitest run",
|
|
28
28
|
"g:build": "drr build"
|
|
29
29
|
},
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "d35827a9380709a9fbfb9630860dcc2739e0bb8e",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@cclr/atom": "0.1.
|
|
33
|
-
"@cclr/lang": "0.1.
|
|
34
|
-
"@cclr/utils": "0.1.
|
|
32
|
+
"@cclr/atom": "0.1.50",
|
|
33
|
+
"@cclr/lang": "0.1.50",
|
|
34
|
+
"@cclr/utils": "0.1.50"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@types/react": "^18.3.27",
|