@expressive/mvc 0.53.2 → 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 +2 -2
  2. package/package.json +2 -2
package/dist/index.d.ts CHANGED
@@ -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.2",
36
- "gitHead": "d6a354f2a2753236f2af2956f7157409d423cfba"
35
+ "version": "0.53.3",
36
+ "gitHead": "b9418691a8602553852a47b981a3b4d407ce6ff6"
37
37
  }