@adaas/a-concept 0.1.34 → 0.1.36
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.map +1 -1
- package/dist/index.d.mts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/global/A-Fragment/A-Fragment.class.ts +6 -6
- package/src/global/A-Scope/A-Scope.class.ts +8 -8
- package/tests/A-Fragment.test.ts +40 -2
package/dist/index.d.mts
CHANGED
|
@@ -2387,7 +2387,7 @@ declare class A_Fragment<_MetaItems extends Record<string, any> = any, _Serializ
|
|
|
2387
2387
|
* }
|
|
2388
2388
|
* ```
|
|
2389
2389
|
*/
|
|
2390
|
-
get
|
|
2390
|
+
get(param: keyof _MetaItems): _MetaItems[typeof param] | undefined;
|
|
2391
2391
|
/**
|
|
2392
2392
|
* Stores a value in the fragment's meta.
|
|
2393
2393
|
*
|
|
@@ -2400,7 +2400,7 @@ declare class A_Fragment<_MetaItems extends Record<string, any> = any, _Serializ
|
|
|
2400
2400
|
* fragment.set('role', 'admin');
|
|
2401
2401
|
* ```
|
|
2402
2402
|
*/
|
|
2403
|
-
set
|
|
2403
|
+
set(param: keyof _MetaItems, value: _MetaItems[typeof param]): void;
|
|
2404
2404
|
/**
|
|
2405
2405
|
* Removes a specific key from the fragment's meta.
|
|
2406
2406
|
*
|
|
@@ -3109,41 +3109,41 @@ declare class A_Scope<_ComponentType extends A_TYPES__Component_Constructor[] =
|
|
|
3109
3109
|
* Provide a component constructor to register it in the scope
|
|
3110
3110
|
*/
|
|
3111
3111
|
component: A_TYPES__Component_Constructor<T>): void;
|
|
3112
|
-
register(
|
|
3112
|
+
register<T extends A_Component>(
|
|
3113
3113
|
/**
|
|
3114
3114
|
* Provide a command instance to register it in the scope
|
|
3115
3115
|
*/
|
|
3116
|
-
component:
|
|
3116
|
+
component: T): void;
|
|
3117
3117
|
register<T extends A_Error>(
|
|
3118
3118
|
/**
|
|
3119
3119
|
* Provide an error constructor to register it in the scope
|
|
3120
3120
|
*/
|
|
3121
3121
|
error: A_TYPES__Error_Constructor<T>): void;
|
|
3122
|
-
register(
|
|
3122
|
+
register<T extends A_Error>(
|
|
3123
3123
|
/**
|
|
3124
3124
|
* Provide an error instance to register it in the scope
|
|
3125
3125
|
*/
|
|
3126
|
-
error:
|
|
3126
|
+
error: T): void;
|
|
3127
3127
|
register<T extends A_Fragment>(
|
|
3128
3128
|
/**
|
|
3129
3129
|
* Provide a command instance to register it in the scope
|
|
3130
3130
|
*/
|
|
3131
3131
|
fragment: A_TYPES__Fragment_Constructor<T>): void;
|
|
3132
|
-
register(
|
|
3132
|
+
register<T extends A_Fragment>(
|
|
3133
3133
|
/**
|
|
3134
3134
|
* Provide a fragment instance to register it in the scope
|
|
3135
3135
|
*/
|
|
3136
|
-
fragment:
|
|
3136
|
+
fragment: T): void;
|
|
3137
3137
|
register<T extends A_Entity>(
|
|
3138
3138
|
/**
|
|
3139
3139
|
* Provide an entity constructor to register it in the scope
|
|
3140
3140
|
*/
|
|
3141
3141
|
entity: A_TYPES__Entity_Constructor<T>): void;
|
|
3142
|
-
register(
|
|
3142
|
+
register<T extends A_Entity>(
|
|
3143
3143
|
/**
|
|
3144
3144
|
* Provide an entity instance to register it in the scope
|
|
3145
3145
|
*/
|
|
3146
|
-
entity:
|
|
3146
|
+
entity: T): void;
|
|
3147
3147
|
/**
|
|
3148
3148
|
* This method is used to deregister the component from the scope
|
|
3149
3149
|
*
|
package/dist/index.d.ts
CHANGED
|
@@ -2387,7 +2387,7 @@ declare class A_Fragment<_MetaItems extends Record<string, any> = any, _Serializ
|
|
|
2387
2387
|
* }
|
|
2388
2388
|
* ```
|
|
2389
2389
|
*/
|
|
2390
|
-
get
|
|
2390
|
+
get(param: keyof _MetaItems): _MetaItems[typeof param] | undefined;
|
|
2391
2391
|
/**
|
|
2392
2392
|
* Stores a value in the fragment's meta.
|
|
2393
2393
|
*
|
|
@@ -2400,7 +2400,7 @@ declare class A_Fragment<_MetaItems extends Record<string, any> = any, _Serializ
|
|
|
2400
2400
|
* fragment.set('role', 'admin');
|
|
2401
2401
|
* ```
|
|
2402
2402
|
*/
|
|
2403
|
-
set
|
|
2403
|
+
set(param: keyof _MetaItems, value: _MetaItems[typeof param]): void;
|
|
2404
2404
|
/**
|
|
2405
2405
|
* Removes a specific key from the fragment's meta.
|
|
2406
2406
|
*
|
|
@@ -3109,41 +3109,41 @@ declare class A_Scope<_ComponentType extends A_TYPES__Component_Constructor[] =
|
|
|
3109
3109
|
* Provide a component constructor to register it in the scope
|
|
3110
3110
|
*/
|
|
3111
3111
|
component: A_TYPES__Component_Constructor<T>): void;
|
|
3112
|
-
register(
|
|
3112
|
+
register<T extends A_Component>(
|
|
3113
3113
|
/**
|
|
3114
3114
|
* Provide a command instance to register it in the scope
|
|
3115
3115
|
*/
|
|
3116
|
-
component:
|
|
3116
|
+
component: T): void;
|
|
3117
3117
|
register<T extends A_Error>(
|
|
3118
3118
|
/**
|
|
3119
3119
|
* Provide an error constructor to register it in the scope
|
|
3120
3120
|
*/
|
|
3121
3121
|
error: A_TYPES__Error_Constructor<T>): void;
|
|
3122
|
-
register(
|
|
3122
|
+
register<T extends A_Error>(
|
|
3123
3123
|
/**
|
|
3124
3124
|
* Provide an error instance to register it in the scope
|
|
3125
3125
|
*/
|
|
3126
|
-
error:
|
|
3126
|
+
error: T): void;
|
|
3127
3127
|
register<T extends A_Fragment>(
|
|
3128
3128
|
/**
|
|
3129
3129
|
* Provide a command instance to register it in the scope
|
|
3130
3130
|
*/
|
|
3131
3131
|
fragment: A_TYPES__Fragment_Constructor<T>): void;
|
|
3132
|
-
register(
|
|
3132
|
+
register<T extends A_Fragment>(
|
|
3133
3133
|
/**
|
|
3134
3134
|
* Provide a fragment instance to register it in the scope
|
|
3135
3135
|
*/
|
|
3136
|
-
fragment:
|
|
3136
|
+
fragment: T): void;
|
|
3137
3137
|
register<T extends A_Entity>(
|
|
3138
3138
|
/**
|
|
3139
3139
|
* Provide an entity constructor to register it in the scope
|
|
3140
3140
|
*/
|
|
3141
3141
|
entity: A_TYPES__Entity_Constructor<T>): void;
|
|
3142
|
-
register(
|
|
3142
|
+
register<T extends A_Entity>(
|
|
3143
3143
|
/**
|
|
3144
3144
|
* Provide an entity instance to register it in the scope
|
|
3145
3145
|
*/
|
|
3146
|
-
entity:
|
|
3146
|
+
entity: T): void;
|
|
3147
3147
|
/**
|
|
3148
3148
|
* This method is used to deregister the component from the scope
|
|
3149
3149
|
*
|