@eggjs/tegg-types 3.50.1 → 3.51.1

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.
@@ -1,3 +1,4 @@
1
1
  export interface InjectParams {
2
2
  name?: string;
3
+ optional?: boolean;
3
4
  }
@@ -12,4 +12,8 @@ export interface InjectConstructorInfo {
12
12
  * obj's name will be injected
13
13
  */
14
14
  objName: EggObjectName;
15
+ /**
16
+ * optional inject
17
+ */
18
+ optional?: boolean;
15
19
  }
@@ -8,4 +8,8 @@ export interface InjectObjectInfo {
8
8
  * obj's name will be injected
9
9
  */
10
10
  objName: EggObjectName;
11
+ /**
12
+ * optional inject
13
+ */
14
+ optional?: boolean;
11
15
  }
@@ -14,6 +14,10 @@ export interface InjectObjectProto {
14
14
  * inject qualifiers
15
15
  */
16
16
  qualifiers: QualifierInfo[];
17
+ /**
18
+ * optional inject
19
+ */
20
+ optional?: boolean;
17
21
  /**
18
22
  * inject prototype
19
23
  */
@@ -36,6 +40,10 @@ export interface InjectConstructorProto {
36
40
  * inject qualifiers
37
41
  */
38
42
  qualifiers: QualifierInfo[];
43
+ /**
44
+ * optional inject
45
+ */
46
+ optional?: boolean;
39
47
  /**
40
48
  * inject prototype
41
49
  */
@@ -55,6 +63,10 @@ export interface InjectObject {
55
63
  * if null same as current obj
56
64
  */
57
65
  initType?: ObjectInitTypeLike;
66
+ /**
67
+ * optional inject
68
+ */
69
+ optional?: boolean;
58
70
  }
59
71
  export interface InjectConstructor {
60
72
  /**
@@ -74,6 +86,10 @@ export interface InjectConstructor {
74
86
  * if null same as current obj
75
87
  */
76
88
  initType?: ObjectInitTypeLike;
89
+ /**
90
+ * optional inject
91
+ */
92
+ optional?: boolean;
77
93
  }
78
94
  export type EggPrototypeClass = new (...args: any[]) => EggPrototype;
79
95
  export interface EggPrototypeLifecycleContext extends LifecycleContext {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eggjs/tegg-types",
3
- "version": "3.50.1",
3
+ "version": "3.51.1",
4
4
  "description": "tegg types",
5
5
  "keywords": [
6
6
  "egg",
@@ -44,5 +44,5 @@
44
44
  "ts-node": "^10.9.1",
45
45
  "typescript": "^5.0.4"
46
46
  },
47
- "gitHead": "3604a40c0cde30c2759a58872a1b6c4ba5a62541"
47
+ "gitHead": "e37755bff75997153ee2a935f089010f9c0a8c81"
48
48
  }