@expressive/mvc 0.53.0 → 0.53.3

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +3 -3
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -264,7 +264,7 @@ declare function get<T extends Model>(Type: Model.Type<T>, required?: false): T
264
264
  * @param source - Type of Model to fetch for computation.
265
265
  * @param compute - Compute function. Will update automatically as input values change.
266
266
  */
267
- declare function get<R, T extends Model>(Type: Model.Type<T>, effect: get.Effect<T>): R;
267
+ declare function get<T extends Model>(Type: Model.Type<T>, effect: get.Effect<T>): T;
268
268
  /**
269
269
  * Implement a computed value; output will be generated by provided function.
270
270
  *
@@ -370,12 +370,12 @@ declare function set<T>(factory: set.Factory<T> | Promise<T>, required: false):
370
370
  */
371
371
  declare function set<T>(factory: set.Factory<T> | Promise<T>, required?: boolean): T;
372
372
  /**
373
- * Set a property with empty placeholder and update callback.
373
+ * Set a property with empty placeholder and/or update callback.
374
374
  *
375
375
  * @param value - Starting value for property. If undefined, suspense will be thrown on access, until value is set and accepted by callback.
376
376
  * @param onUpdate - Callback run when property is set. If returns false, update is not accepted and property will keep previous value.
377
377
  */
378
- declare function set<T>(value: T | undefined, onUpdate: set.Callback<T>): T;
378
+ declare function set<T>(value: T | undefined, onUpdate?: set.Callback<T>): T;
379
379
 
380
380
  declare function use<T>(instruction: Model.Instruction<T>): T extends void ? unknown : T;
381
381
  declare function use<T extends Model>(Type: Model.Init<T>, required: false): T | undefined;
package/package.json CHANGED
@@ -32,6 +32,6 @@
32
32
  "jest": "^27.0.6",
33
33
  "tsup": "^8.0.2"
34
34
  },
35
- "version": "0.53.0",
36
- "gitHead": "f08a23f66d6e5f308dd3d345b125d274357dc6a3"
35
+ "version": "0.53.3",
36
+ "gitHead": "b9418691a8602553852a47b981a3b4d407ce6ff6"
37
37
  }