@xh/hoist 69.0.0-SNAPSHOT.1728035585537 → 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.
@@ -190,7 +190,7 @@ export class ClientErrorsModel extends HoistModel {
190
190
  }
191
191
 
192
192
  private get defaultStartDay() {
193
- return LocalDate.currentAppDay().subtract(6);
193
+ return LocalDate.currentAppDay();
194
194
  }
195
195
 
196
196
  private get defaultEndDay() {
@@ -315,7 +315,7 @@ export class ActivityTrackingModel extends HoistModel {
315
315
  }
316
316
 
317
317
  private get defaultStartDay() {
318
- return LocalDate.currentAppDay().subtract(6);
318
+ return LocalDate.currentAppDay();
319
319
  }
320
320
 
321
321
  private get defaultEndDay() {
@@ -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(...specs: ReactionSpec<any>[]): IReactionDisposer | IReactionDisposer[];
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(...specs: ReactionSpec<any>[]): IReactionDisposer | IReactionDisposer[] {
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.1728035585537",
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",