@adaas/a-concept 0.1.33 → 0.1.35
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/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -8
- package/dist/index.d.ts +8 -8
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/global/A-Scope/A-Scope.class.ts +8 -8
- package/src/helpers/A_TypeGuards.helper.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaas/a-concept",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.35",
|
|
4
4
|
"description": "A-Concept is a framework to build new Applications within or outside the ADAAS ecosystem. This framework is designed to be modular structure regardless environment and program goal.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -1082,11 +1082,11 @@ export class A_Scope<
|
|
|
1082
1082
|
*/
|
|
1083
1083
|
component: A_TYPES__Component_Constructor<T>
|
|
1084
1084
|
): void
|
|
1085
|
-
register(
|
|
1085
|
+
register<T extends A_Component>(
|
|
1086
1086
|
/**
|
|
1087
1087
|
* Provide a command instance to register it in the scope
|
|
1088
1088
|
*/
|
|
1089
|
-
component:
|
|
1089
|
+
component: T
|
|
1090
1090
|
): void
|
|
1091
1091
|
register<T extends A_Error>(
|
|
1092
1092
|
/**
|
|
@@ -1094,11 +1094,11 @@ export class A_Scope<
|
|
|
1094
1094
|
*/
|
|
1095
1095
|
error: A_TYPES__Error_Constructor<T>
|
|
1096
1096
|
): void
|
|
1097
|
-
register(
|
|
1097
|
+
register<T extends A_Error>(
|
|
1098
1098
|
/**
|
|
1099
1099
|
* Provide an error instance to register it in the scope
|
|
1100
1100
|
*/
|
|
1101
|
-
error:
|
|
1101
|
+
error: T
|
|
1102
1102
|
): void
|
|
1103
1103
|
register<T extends A_Fragment>(
|
|
1104
1104
|
/**
|
|
@@ -1106,11 +1106,11 @@ export class A_Scope<
|
|
|
1106
1106
|
*/
|
|
1107
1107
|
fragment: A_TYPES__Fragment_Constructor<T>
|
|
1108
1108
|
): void
|
|
1109
|
-
register(
|
|
1109
|
+
register<T extends A_Fragment>(
|
|
1110
1110
|
/**
|
|
1111
1111
|
* Provide a fragment instance to register it in the scope
|
|
1112
1112
|
*/
|
|
1113
|
-
fragment:
|
|
1113
|
+
fragment: T
|
|
1114
1114
|
): void
|
|
1115
1115
|
register<T extends A_Entity>(
|
|
1116
1116
|
/**
|
|
@@ -1118,11 +1118,11 @@ export class A_Scope<
|
|
|
1118
1118
|
*/
|
|
1119
1119
|
entity: A_TYPES__Entity_Constructor<T>
|
|
1120
1120
|
): void
|
|
1121
|
-
register(
|
|
1121
|
+
register<T extends A_Entity>(
|
|
1122
1122
|
/**
|
|
1123
1123
|
* Provide an entity instance to register it in the scope
|
|
1124
1124
|
*/
|
|
1125
|
-
entity:
|
|
1125
|
+
entity: T
|
|
1126
1126
|
): void
|
|
1127
1127
|
|
|
1128
1128
|
register(
|
|
@@ -291,7 +291,8 @@ export class A_TypeGuards {
|
|
|
291
291
|
static isTargetAvailableForInjection(target: any): target is A_TYPES__InjectableTargets {
|
|
292
292
|
return A_TypeGuards.isComponentConstructor(target)
|
|
293
293
|
|| A_TypeGuards.isComponentInstance(target)
|
|
294
|
-
|| A_TypeGuards.isContainerInstance(target)
|
|
294
|
+
|| A_TypeGuards.isContainerInstance(target)
|
|
295
|
+
|| A_TypeGuards.isEntityInstance(target)
|
|
295
296
|
}
|
|
296
297
|
|
|
297
298
|
static isAllowedForFeatureCall(param: any): param is A_TYPES__FeatureAvailableComponents {
|