@expressive/mvc 0.2.2 → 0.2.5
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/lib/index.d.ts +3 -3
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -449,7 +449,7 @@ declare class MVC extends Model {
|
|
|
449
449
|
* Effect callback will run once if found, throw if not found.
|
|
450
450
|
* Returned function is called on unmount.
|
|
451
451
|
*/
|
|
452
|
-
static get<T extends Class, I extends InstanceOf<T>>(
|
|
452
|
+
static get<T extends Class, I extends InstanceOf<T>>(this: T, effect: (found: I) => Callback | void): I;
|
|
453
453
|
/**
|
|
454
454
|
* **React Hook** - Fetch and subscribe to instance of this controller within ambient component.
|
|
455
455
|
*/
|
|
@@ -574,13 +574,13 @@ declare class Global extends MVC {
|
|
|
574
574
|
*
|
|
575
575
|
* @param required - If false, may return undefined.
|
|
576
576
|
*/
|
|
577
|
-
static get<T extends Class>(this: T, required
|
|
577
|
+
static get<T extends Class>(this: T, required: false): InstanceOf<T> | undefined;
|
|
578
578
|
/**
|
|
579
579
|
* **React Hook** - Fetch most instance of this controller from context.
|
|
580
580
|
*
|
|
581
581
|
* @param required - Unless false, will throw where instance cannot be found.
|
|
582
582
|
*/
|
|
583
|
-
static get<T extends Class>(this: T, required
|
|
583
|
+
static get<T extends Class>(this: T, required?: boolean): InstanceOf<T>;
|
|
584
584
|
/**
|
|
585
585
|
* **React Hook** - Fetch specific value from instance of this controller in context.
|
|
586
586
|
*/
|