@expressive/mvc 0.2.4 → 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 +2 -2
- 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
|
@@ -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
|
*/
|