@adaas/a-concept 0.1.60 → 0.1.61
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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/global/A-Meta/A-Meta.decorator.ts +3 -2
- package/tests/A-Meta.test.ts +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaas/a-concept",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.61",
|
|
4
4
|
"description": "A-Concept is a framework of the new generation that is tailored to use AI, enabling developers to create AI-powered applications with ease. It provides a structured approach to building, managing, and deploying AI-driven solutions.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -15,8 +15,9 @@ import { A_TYPES__MetaLinkedComponentConstructors } from "./A-Meta.types";
|
|
|
15
15
|
export function A_MetaDecorator<T extends A_Meta>(
|
|
16
16
|
constructor: new (...args: any[]) => T
|
|
17
17
|
) {
|
|
18
|
-
return function
|
|
19
|
-
|
|
18
|
+
return function <TTarget extends A_TYPES__MetaLinkedComponentConstructors>(
|
|
19
|
+
target: TTarget
|
|
20
|
+
): TTarget {
|
|
20
21
|
// Store meta info on the target class itself for the Meta decorator to pick up
|
|
21
22
|
A_Context.setMeta(target, new constructor());
|
|
22
23
|
|
package/tests/A-Meta.test.ts
CHANGED
|
@@ -144,6 +144,10 @@ describe('A-Meta tests', () => {
|
|
|
144
144
|
@A_Meta.Define(CustomComponentMeta)
|
|
145
145
|
class CustomComponent extends A_Component {
|
|
146
146
|
|
|
147
|
+
static Test(){
|
|
148
|
+
|
|
149
|
+
}
|
|
150
|
+
|
|
147
151
|
constructor(
|
|
148
152
|
@A_Inject(InjectableComponent) public injectableComponent: InjectableComponent
|
|
149
153
|
) {
|