@whitesev/utils 2.7.7 → 2.8.0
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.amd.js +3 -3
- package/dist/index.amd.js.map +1 -1
- package/dist/index.cjs.js +3 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +3 -3
- package/dist/index.esm.js.map +1 -1
- package/dist/index.iife.js +3 -3
- package/dist/index.iife.js.map +1 -1
- package/dist/index.system.js +3 -3
- package/dist/index.system.js.map +1 -1
- package/dist/index.umd.js +3 -3
- package/dist/index.umd.js.map +1 -1
- package/dist/types/src/types/React.d.ts +7 -7
- package/package.json +1 -1
- package/src/Dictionary.ts +2 -2
- package/src/Utils.ts +1 -1
- package/src/types/React.d.ts +7 -7
|
@@ -79,34 +79,34 @@ export declare interface ReactFiberNode {
|
|
|
79
79
|
* 用于存储组件的更新状态,比如新的状态、属性或者 context 的变化。通过 updateQueue ,React 可以跟踪组件的更新并在合适的时机执行更新。
|
|
80
80
|
*/
|
|
81
81
|
updateQueue: any;
|
|
82
|
-
[key: string | symbol]: any;
|
|
82
|
+
[key: string | symbol | number]: any;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export declare interface ReactProps {
|
|
86
86
|
$$typeof: symbol;
|
|
87
|
-
children:
|
|
87
|
+
children: ReactProps;
|
|
88
88
|
key: string | null;
|
|
89
89
|
ref: any;
|
|
90
90
|
props: ReactProps;
|
|
91
91
|
type: string;
|
|
92
92
|
_owner: any;
|
|
93
|
-
[key: string | symbol]: any;
|
|
93
|
+
[key: string | symbol | number]: any;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
export declare interface ReactEvents {
|
|
97
|
-
[key: string | symbol]: any;
|
|
97
|
+
[key: string | symbol | number]: any;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
export declare interface ReactEventHandlers {
|
|
101
|
-
[key: string | symbol]: any;
|
|
101
|
+
[key: string | symbol | number]: any;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
export declare interface ReactInternalInstance {
|
|
105
|
-
[key: string | symbol]: any;
|
|
105
|
+
[key: string | symbol | number]: any;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
export declare interface ReactContainer {
|
|
109
|
-
[key: string | symbol]: any;
|
|
109
|
+
[key: string | symbol | number]: any;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
export declare interface ReactInstance {
|
package/package.json
CHANGED
package/src/Dictionary.ts
CHANGED
|
@@ -79,13 +79,13 @@ export class UtilsDictionary<K extends unknown, V extends any> {
|
|
|
79
79
|
* 获取字典所有的键
|
|
80
80
|
*/
|
|
81
81
|
keys(): K[] {
|
|
82
|
-
return this.items.keys()
|
|
82
|
+
return Array.from(this.items.keys());
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
85
|
* 返回字典中的所有值
|
|
86
86
|
*/
|
|
87
87
|
values(): V[] {
|
|
88
|
-
return this.items.values()
|
|
88
|
+
return Array.from(this.items.values());
|
|
89
89
|
}
|
|
90
90
|
/**
|
|
91
91
|
* 清空字典
|
package/src/Utils.ts
CHANGED
package/src/types/React.d.ts
CHANGED
|
@@ -79,34 +79,34 @@ export declare interface ReactFiberNode {
|
|
|
79
79
|
* 用于存储组件的更新状态,比如新的状态、属性或者 context 的变化。通过 updateQueue ,React 可以跟踪组件的更新并在合适的时机执行更新。
|
|
80
80
|
*/
|
|
81
81
|
updateQueue: any;
|
|
82
|
-
[key: string | symbol]: any;
|
|
82
|
+
[key: string | symbol | number]: any;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export declare interface ReactProps {
|
|
86
86
|
$$typeof: symbol;
|
|
87
|
-
children:
|
|
87
|
+
children: ReactProps;
|
|
88
88
|
key: string | null;
|
|
89
89
|
ref: any;
|
|
90
90
|
props: ReactProps;
|
|
91
91
|
type: string;
|
|
92
92
|
_owner: any;
|
|
93
|
-
[key: string | symbol]: any;
|
|
93
|
+
[key: string | symbol | number]: any;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
export declare interface ReactEvents {
|
|
97
|
-
[key: string | symbol]: any;
|
|
97
|
+
[key: string | symbol | number]: any;
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
export declare interface ReactEventHandlers {
|
|
101
|
-
[key: string | symbol]: any;
|
|
101
|
+
[key: string | symbol | number]: any;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
export declare interface ReactInternalInstance {
|
|
105
|
-
[key: string | symbol]: any;
|
|
105
|
+
[key: string | symbol | number]: any;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
export declare interface ReactContainer {
|
|
109
|
-
[key: string | symbol]: any;
|
|
109
|
+
[key: string | symbol | number]: any;
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
export declare interface ReactInstance {
|