@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adaas/a-concept",
3
- "version": "0.1.60",
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 (target: A_TYPES__MetaLinkedComponentConstructors
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
 
@@ -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
  ) {