@dcl/react-ecs 7.8.1-14112508710.commit-8fa2c9e → 7.8.1
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/react-ecs.d.ts +11 -2
- package/dist/react-ecs.js +2 -0
- package/package.json +3 -3
package/dist/react-ecs.d.ts
CHANGED
|
@@ -50,7 +50,7 @@ export interface ReactElement<P = any, T extends string | JSXElementConstructor<
|
|
|
50
50
|
* @public
|
|
51
51
|
*/
|
|
52
52
|
export declare namespace ReactEcs {
|
|
53
|
-
namespace JSX {
|
|
53
|
+
export namespace JSX {
|
|
54
54
|
/**
|
|
55
55
|
* @public
|
|
56
56
|
*/
|
|
@@ -73,5 +73,14 @@ export declare namespace ReactEcs {
|
|
|
73
73
|
interface Component {
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
|
-
const createElement: any;
|
|
76
|
+
export const createElement: any;
|
|
77
|
+
type SetStateAction<T> = T | ((prevState: T) => T);
|
|
78
|
+
type Dispatch<T> = (action: SetStateAction<T>) => void;
|
|
79
|
+
type StateHook = <T>(initialState: T | (() => T)) => [T, Dispatch<T>];
|
|
80
|
+
type DependencyList = ReadonlyArray<any>;
|
|
81
|
+
type EffectCallback = () => void | (() => void | undefined);
|
|
82
|
+
type EffectHook = (effect: EffectCallback, deps?: DependencyList) => void;
|
|
83
|
+
export const useEffect: EffectHook;
|
|
84
|
+
export const useState: StateHook;
|
|
85
|
+
export {};
|
|
77
86
|
}
|
package/dist/react-ecs.js
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/react-ecs",
|
|
3
3
|
"description": "Decentraland ECS",
|
|
4
|
-
"version": "7.8.1
|
|
4
|
+
"version": "7.8.1",
|
|
5
5
|
"author": "DCL",
|
|
6
6
|
"bugs": "https://github.com/decentraland/js-sdk-toolchain/issues",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@dcl/ecs": "7.8.1
|
|
8
|
+
"@dcl/ecs": "7.8.1",
|
|
9
9
|
"react": "^18.2.0",
|
|
10
10
|
"react-reconciler": "^0.29.0"
|
|
11
11
|
},
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"tsconfig": "./tsconfig.json"
|
|
41
41
|
},
|
|
42
42
|
"types": "./dist/index.d.ts",
|
|
43
|
-
"commit": "
|
|
43
|
+
"commit": "d9545647374e1d0470a13b7f0486aa08cb38cfcc"
|
|
44
44
|
}
|