@xh/hoist 69.0.0-SNAPSHOT.1728037136139 → 69.0.0-SNAPSHOT.1728079276919
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.
|
@@ -71,7 +71,9 @@ export declare abstract class HoistBase {
|
|
|
71
71
|
* @param specs - one or more reactions to add
|
|
72
72
|
* @returns disposer(s) to manually dispose of each created reaction.
|
|
73
73
|
*/
|
|
74
|
-
addReaction
|
|
74
|
+
addReaction<T extends any[]>(...specs: {
|
|
75
|
+
[K in keyof T]: ReactionSpec<T[K]>;
|
|
76
|
+
}): IReactionDisposer | IReactionDisposer[];
|
|
75
77
|
/**
|
|
76
78
|
* Add and start one or more managed autoruns.
|
|
77
79
|
*
|
package/core/HoistBase.ts
CHANGED
|
@@ -137,7 +137,9 @@ export abstract class HoistBase {
|
|
|
137
137
|
* @param specs - one or more reactions to add
|
|
138
138
|
* @returns disposer(s) to manually dispose of each created reaction.
|
|
139
139
|
*/
|
|
140
|
-
addReaction
|
|
140
|
+
addReaction<T extends any[]>(
|
|
141
|
+
...specs: {[K in keyof T]: ReactionSpec<T[K]>}
|
|
142
|
+
): IReactionDisposer | IReactionDisposer[] {
|
|
141
143
|
const disposers = specs.map(s => {
|
|
142
144
|
if (!s) return null;
|
|
143
145
|
let {track, when, run, debounce, ...rest} = s;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xh/hoist",
|
|
3
|
-
"version": "69.0.0-SNAPSHOT.
|
|
3
|
+
"version": "69.0.0-SNAPSHOT.1728079276919",
|
|
4
4
|
"description": "Hoist add-on for building and deploying React Applications.",
|
|
5
5
|
"repository": "github:xh/hoist-react",
|
|
6
6
|
"homepage": "https://xh.io",
|