@adaas/a-concept 0.2.3 → 0.2.4

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.2.3",
3
+ "version": "0.2.4",
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",
@@ -7,6 +7,7 @@ import { A_Dependency_Require } from "./A-Dependency-Require.decorator";
7
7
  import { A_DependencyError } from "./A-Dependency.error";
8
8
  import { A_TYPES__A_Dependency_EntityInjectionPagination, A_TYPES__A_Dependency_EntityInjectionQuery, A_TYPES__A_Dependency_Serialized, A_TYPES__A_DependencyInjectable, A_TYPES__A_DependencyResolutionStrategy } from "./A-Dependency.types";
9
9
  import { A_TYPES__Ctor } from "@adaas/a-concept/types/A_Common.types";
10
+ import { A_Dependency_All } from "./A-Dependency-All.decorator";
10
11
 
11
12
 
12
13
  export class A_Dependency<
@@ -58,6 +59,15 @@ export class A_Dependency<
58
59
  return A_Dependency_Flat;
59
60
  }
60
61
 
62
+ /**
63
+ * Allows to indicate that all instances of the dependency should be resolved
64
+ *
65
+ * @returns
66
+ */
67
+ static get All(): typeof A_Dependency_All {
68
+ return A_Dependency_All;
69
+ }
70
+
61
71
  protected _name: string;
62
72
  protected _target?: A_TYPES__Ctor<T>;
63
73
  protected _resolutionStrategy!: A_TYPES__A_DependencyResolutionStrategy;