inversify 6.1.5-beta.0 → 6.1.5-beta.2

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.
Files changed (324) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/{es → lib/cjs}/annotation/decorator_utils.d.ts +1 -0
  3. package/lib/cjs/annotation/decorator_utils.d.ts.map +1 -0
  4. package/lib/{annotation → cjs/annotation}/decorator_utils.js +8 -0
  5. package/lib/cjs/annotation/decorator_utils.js.map +1 -0
  6. package/{es → lib/cjs}/annotation/inject.d.ts +1 -0
  7. package/lib/cjs/annotation/inject.d.ts.map +1 -0
  8. package/lib/{annotation → cjs/annotation}/inject.js +1 -0
  9. package/lib/cjs/annotation/inject.js.map +1 -0
  10. package/{es → lib/cjs}/annotation/inject_base.d.ts +1 -0
  11. package/lib/cjs/annotation/inject_base.d.ts.map +1 -0
  12. package/lib/{annotation → cjs/annotation}/inject_base.js +2 -0
  13. package/lib/cjs/annotation/inject_base.js.map +1 -0
  14. package/{es → lib/cjs}/annotation/injectable.d.ts +1 -0
  15. package/lib/cjs/annotation/injectable.d.ts.map +1 -0
  16. package/lib/{annotation → cjs/annotation}/injectable.js +2 -0
  17. package/lib/cjs/annotation/injectable.js.map +1 -0
  18. package/lib/{annotation → cjs/annotation}/multi_inject.d.ts +1 -0
  19. package/lib/cjs/annotation/multi_inject.d.ts.map +1 -0
  20. package/lib/{annotation → cjs/annotation}/multi_inject.js +1 -0
  21. package/lib/cjs/annotation/multi_inject.js.map +1 -0
  22. package/{es → lib/cjs}/annotation/named.d.ts +1 -0
  23. package/lib/cjs/annotation/named.d.ts.map +1 -0
  24. package/lib/{annotation → cjs/annotation}/named.js +2 -0
  25. package/lib/cjs/annotation/named.js.map +1 -0
  26. package/{es → lib/cjs}/annotation/optional.d.ts +1 -0
  27. package/lib/cjs/annotation/optional.d.ts.map +1 -0
  28. package/lib/{annotation → cjs/annotation}/optional.js +1 -0
  29. package/lib/cjs/annotation/optional.js.map +1 -0
  30. package/{es → lib/cjs}/annotation/post_construct.d.ts +1 -0
  31. package/lib/cjs/annotation/post_construct.d.ts.map +1 -0
  32. package/lib/{annotation → cjs/annotation}/post_construct.js +1 -0
  33. package/lib/cjs/annotation/post_construct.js.map +1 -0
  34. package/{es → lib/cjs}/annotation/pre_destroy.d.ts +1 -0
  35. package/lib/cjs/annotation/pre_destroy.d.ts.map +1 -0
  36. package/lib/{annotation → cjs/annotation}/pre_destroy.js +1 -0
  37. package/lib/cjs/annotation/pre_destroy.js.map +1 -0
  38. package/lib/{annotation → cjs/annotation}/property_event_decorator.d.ts +1 -0
  39. package/lib/cjs/annotation/property_event_decorator.d.ts.map +1 -0
  40. package/lib/{annotation → cjs/annotation}/property_event_decorator.js +1 -0
  41. package/lib/cjs/annotation/property_event_decorator.js.map +1 -0
  42. package/{es → lib/cjs}/annotation/tagged.d.ts +1 -0
  43. package/lib/cjs/annotation/tagged.d.ts.map +1 -0
  44. package/lib/{annotation → cjs/annotation}/tagged.js +2 -0
  45. package/lib/cjs/annotation/tagged.js.map +1 -0
  46. package/lib/{annotation → cjs/annotation}/target_name.d.ts +1 -0
  47. package/lib/cjs/annotation/target_name.d.ts.map +1 -0
  48. package/lib/{annotation → cjs/annotation}/target_name.js +1 -0
  49. package/lib/cjs/annotation/target_name.js.map +1 -0
  50. package/lib/{annotation → cjs/annotation}/unmanaged.d.ts +1 -0
  51. package/lib/cjs/annotation/unmanaged.d.ts.map +1 -0
  52. package/lib/{annotation → cjs/annotation}/unmanaged.js +1 -0
  53. package/lib/cjs/annotation/unmanaged.js.map +1 -0
  54. package/lib/{bindings → cjs/bindings}/binding.d.ts +1 -0
  55. package/lib/cjs/bindings/binding.d.ts.map +1 -0
  56. package/lib/{bindings → cjs/bindings}/binding.js +15 -0
  57. package/lib/cjs/bindings/binding.js.map +1 -0
  58. package/lib/{bindings → cjs/bindings}/binding_count.d.ts +1 -0
  59. package/lib/cjs/bindings/binding_count.d.ts.map +1 -0
  60. package/lib/{bindings → cjs/bindings}/binding_count.js +1 -0
  61. package/lib/cjs/bindings/binding_count.js.map +1 -0
  62. package/{es → lib/cjs}/constants/error_msgs.d.ts +1 -0
  63. package/lib/cjs/constants/error_msgs.d.ts.map +1 -0
  64. package/lib/{constants → cjs/constants}/error_msgs.js +2 -0
  65. package/lib/cjs/constants/error_msgs.js.map +1 -0
  66. package/lib/{constants → cjs/constants}/literal_types.d.ts +1 -0
  67. package/lib/cjs/constants/literal_types.d.ts.map +1 -0
  68. package/lib/{constants → cjs/constants}/literal_types.js +4 -0
  69. package/lib/cjs/constants/literal_types.js.map +1 -0
  70. package/{es → lib/cjs}/constants/metadata_keys.d.ts +1 -0
  71. package/lib/cjs/constants/metadata_keys.d.ts.map +1 -0
  72. package/lib/{constants → cjs/constants}/metadata_keys.js +13 -0
  73. package/lib/cjs/constants/metadata_keys.js.map +1 -0
  74. package/lib/{container → cjs/container}/container.d.ts +1 -0
  75. package/lib/cjs/container/container.d.ts.map +1 -0
  76. package/lib/{container → cjs/container}/container.js +29 -1
  77. package/lib/cjs/container/container.js.map +1 -0
  78. package/{es → lib/cjs}/container/container_module.d.ts +1 -0
  79. package/lib/cjs/container/container_module.d.ts.map +1 -0
  80. package/lib/{container → cjs/container}/container_module.js +1 -0
  81. package/lib/cjs/container/container_module.js.map +1 -0
  82. package/lib/{container → cjs/container}/container_snapshot.d.ts +1 -0
  83. package/lib/cjs/container/container_snapshot.d.ts.map +1 -0
  84. package/lib/{container → cjs/container}/container_snapshot.js +1 -0
  85. package/lib/cjs/container/container_snapshot.js.map +1 -0
  86. package/lib/{container → cjs/container}/lookup.d.ts +1 -0
  87. package/lib/cjs/container/lookup.d.ts.map +1 -0
  88. package/lib/{container → cjs/container}/lookup.js +8 -0
  89. package/lib/cjs/container/lookup.js.map +1 -0
  90. package/{es → lib/cjs}/container/module_activation_store.d.ts +1 -0
  91. package/lib/cjs/container/module_activation_store.d.ts.map +1 -0
  92. package/lib/{container → cjs/container}/module_activation_store.js +1 -0
  93. package/lib/cjs/container/module_activation_store.js.map +1 -0
  94. package/{es/inversify.d.ts → lib/cjs/index.d.ts} +1 -0
  95. package/lib/cjs/index.d.ts.map +1 -0
  96. package/lib/{inversify.js → cjs/index.js} +2 -0
  97. package/lib/cjs/index.js.map +1 -0
  98. package/{es → lib/cjs}/interfaces/interfaces.d.ts +2 -1
  99. package/lib/cjs/interfaces/interfaces.d.ts.map +1 -0
  100. package/lib/{interfaces → cjs/interfaces}/interfaces.js +1 -0
  101. package/lib/cjs/interfaces/interfaces.js.map +1 -0
  102. package/lib/cjs/interfaces/interfaces_common_exports.d.ts +4 -0
  103. package/lib/cjs/interfaces/interfaces_common_exports.d.ts.map +1 -0
  104. package/lib/{annotation/lazy_service_identifier.js → cjs/interfaces/interfaces_common_exports.js} +1 -0
  105. package/lib/cjs/interfaces/interfaces_common_exports.js.map +1 -0
  106. package/lib/cjs/package.json +3 -0
  107. package/{es → lib/cjs}/planning/context.d.ts +1 -0
  108. package/lib/cjs/planning/context.d.ts.map +1 -0
  109. package/lib/{planning → cjs/planning}/context.js +1 -0
  110. package/lib/cjs/planning/context.js.map +1 -0
  111. package/lib/{planning → cjs/planning}/metadata.d.ts +1 -0
  112. package/lib/cjs/planning/metadata.d.ts.map +1 -0
  113. package/lib/{planning → cjs/planning}/metadata.js +1 -0
  114. package/lib/cjs/planning/metadata.js.map +1 -0
  115. package/lib/{planning → cjs/planning}/metadata_reader.d.ts +1 -0
  116. package/lib/cjs/planning/metadata_reader.d.ts.map +1 -0
  117. package/lib/{planning → cjs/planning}/metadata_reader.js +4 -0
  118. package/lib/cjs/planning/metadata_reader.js.map +1 -0
  119. package/{es → lib/cjs}/planning/plan.d.ts +1 -0
  120. package/lib/cjs/planning/plan.d.ts.map +1 -0
  121. package/lib/{planning → cjs/planning}/plan.js +1 -0
  122. package/lib/cjs/planning/plan.js.map +1 -0
  123. package/{es → lib/cjs}/planning/planner.d.ts +1 -0
  124. package/lib/cjs/planning/planner.d.ts.map +1 -0
  125. package/lib/{planning → cjs/planning}/planner.js +10 -0
  126. package/lib/cjs/planning/planner.js.map +1 -0
  127. package/{es → lib/cjs}/planning/queryable_string.d.ts +1 -0
  128. package/lib/cjs/planning/queryable_string.d.ts.map +1 -0
  129. package/lib/{planning → cjs/planning}/queryable_string.js +2 -0
  130. package/lib/cjs/planning/queryable_string.js.map +1 -0
  131. package/{es → lib/cjs}/planning/reflection_utils.d.ts +1 -0
  132. package/lib/cjs/planning/reflection_utils.d.ts.map +1 -0
  133. package/lib/{planning → cjs/planning}/reflection_utils.js +8 -1
  134. package/lib/cjs/planning/reflection_utils.js.map +1 -0
  135. package/{es → lib/cjs}/planning/request.d.ts +1 -0
  136. package/lib/cjs/planning/request.d.ts.map +1 -0
  137. package/lib/{planning → cjs/planning}/request.js +5 -1
  138. package/lib/cjs/planning/request.js.map +1 -0
  139. package/lib/{resolution → cjs/resolution}/instantiation.d.ts +1 -0
  140. package/lib/cjs/resolution/instantiation.d.ts.map +1 -0
  141. package/lib/{resolution → cjs/resolution}/instantiation.js +1 -0
  142. package/lib/cjs/resolution/instantiation.js.map +1 -0
  143. package/{es → lib/cjs}/resolution/resolver.d.ts +1 -0
  144. package/lib/cjs/resolution/resolver.d.ts.map +1 -0
  145. package/lib/{resolution → cjs/resolution}/resolver.js +18 -0
  146. package/lib/cjs/resolution/resolver.js.map +1 -0
  147. package/{es → lib/cjs}/scope/scope.d.ts +1 -0
  148. package/lib/cjs/scope/scope.d.ts.map +1 -0
  149. package/lib/{scope → cjs/scope}/scope.js +7 -0
  150. package/lib/cjs/scope/scope.js.map +1 -0
  151. package/{es → lib/cjs}/syntax/binding_in_syntax.d.ts +1 -0
  152. package/lib/cjs/syntax/binding_in_syntax.d.ts.map +1 -0
  153. package/lib/{syntax → cjs/syntax}/binding_in_syntax.js +1 -0
  154. package/lib/cjs/syntax/binding_in_syntax.js.map +1 -0
  155. package/{es → lib/cjs}/syntax/binding_in_when_on_syntax.d.ts +1 -0
  156. package/lib/cjs/syntax/binding_in_when_on_syntax.d.ts.map +1 -0
  157. package/lib/{syntax → cjs/syntax}/binding_in_when_on_syntax.js +1 -0
  158. package/lib/cjs/syntax/binding_in_when_on_syntax.js.map +1 -0
  159. package/{es → lib/cjs}/syntax/binding_on_syntax.d.ts +1 -0
  160. package/lib/cjs/syntax/binding_on_syntax.d.ts.map +1 -0
  161. package/lib/{syntax → cjs/syntax}/binding_on_syntax.js +1 -0
  162. package/lib/cjs/syntax/binding_on_syntax.js.map +1 -0
  163. package/lib/{syntax → cjs/syntax}/binding_to_syntax.d.ts +1 -0
  164. package/lib/cjs/syntax/binding_to_syntax.d.ts.map +1 -0
  165. package/lib/{syntax → cjs/syntax}/binding_to_syntax.js +7 -0
  166. package/lib/cjs/syntax/binding_to_syntax.js.map +1 -0
  167. package/{es → lib/cjs}/syntax/binding_when_on_syntax.d.ts +1 -0
  168. package/lib/cjs/syntax/binding_when_on_syntax.d.ts.map +1 -0
  169. package/lib/{syntax → cjs/syntax}/binding_when_on_syntax.js +1 -0
  170. package/lib/cjs/syntax/binding_when_on_syntax.js.map +1 -0
  171. package/lib/{syntax → cjs/syntax}/binding_when_syntax.d.ts +1 -0
  172. package/lib/cjs/syntax/binding_when_syntax.d.ts.map +1 -0
  173. package/lib/{syntax → cjs/syntax}/binding_when_syntax.js +4 -1
  174. package/lib/cjs/syntax/binding_when_syntax.js.map +1 -0
  175. package/{es → lib/cjs}/syntax/constraint_helpers.d.ts +1 -0
  176. package/lib/cjs/syntax/constraint_helpers.d.ts.map +1 -0
  177. package/lib/{syntax → cjs/syntax}/constraint_helpers.js +5 -0
  178. package/lib/cjs/syntax/constraint_helpers.js.map +1 -0
  179. package/{es → lib/cjs}/utils/async.d.ts +1 -0
  180. package/lib/cjs/utils/async.d.ts.map +1 -0
  181. package/lib/{utils → cjs/utils}/async.js +1 -0
  182. package/lib/cjs/utils/async.js.map +1 -0
  183. package/{es → lib/cjs}/utils/binding_utils.d.ts +1 -0
  184. package/lib/cjs/utils/binding_utils.d.ts.map +1 -0
  185. package/lib/{utils → cjs/utils}/binding_utils.js +4 -0
  186. package/lib/cjs/utils/binding_utils.js.map +1 -0
  187. package/{es → lib/cjs}/utils/clonable.d.ts +1 -0
  188. package/lib/cjs/utils/clonable.d.ts.map +1 -0
  189. package/lib/{utils → cjs/utils}/clonable.js +1 -0
  190. package/lib/cjs/utils/clonable.js.map +1 -0
  191. package/{es → lib/cjs}/utils/exceptions.d.ts +1 -0
  192. package/lib/cjs/utils/exceptions.d.ts.map +1 -0
  193. package/lib/{utils → cjs/utils}/exceptions.js +1 -0
  194. package/lib/cjs/utils/exceptions.js.map +1 -0
  195. package/lib/{utils → cjs/utils}/factory_type.d.ts +1 -0
  196. package/lib/cjs/utils/factory_type.d.ts.map +1 -0
  197. package/lib/{utils → cjs/utils}/factory_type.js +1 -0
  198. package/lib/cjs/utils/factory_type.js.map +1 -0
  199. package/{es → lib/cjs}/utils/id.d.ts +1 -0
  200. package/lib/cjs/utils/id.d.ts.map +1 -0
  201. package/lib/{utils → cjs/utils}/id.js +1 -0
  202. package/lib/cjs/utils/id.js.map +1 -0
  203. package/{es → lib/cjs}/utils/js.d.ts +1 -0
  204. package/lib/cjs/utils/js.d.ts.map +1 -0
  205. package/lib/{utils → cjs/utils}/js.js +1 -0
  206. package/lib/cjs/utils/js.js.map +1 -0
  207. package/{es → lib/cjs}/utils/serialization.d.ts +1 -0
  208. package/lib/cjs/utils/serialization.d.ts.map +1 -0
  209. package/lib/{utils → cjs/utils}/serialization.js +6 -0
  210. package/lib/cjs/utils/serialization.js.map +1 -0
  211. package/lib/{interfaces/interfaces.d.ts → esm/index.d.ts} +206 -4
  212. package/lib/esm/index.d.ts.map +1 -0
  213. package/lib/esm/index.js +2 -0
  214. package/lib/esm/index.js.map +1 -0
  215. package/package.json +21 -24
  216. package/es/annotation/decorator_utils.js +0 -90
  217. package/es/annotation/inject.js +0 -4
  218. package/es/annotation/inject_base.js +0 -14
  219. package/es/annotation/injectable.js +0 -13
  220. package/es/annotation/lazy_service_identifier.js +0 -1
  221. package/es/annotation/multi_inject.d.ts +0 -5
  222. package/es/annotation/multi_inject.js +0 -4
  223. package/es/annotation/named.js +0 -7
  224. package/es/annotation/optional.js +0 -7
  225. package/es/annotation/post_construct.js +0 -5
  226. package/es/annotation/pre_destroy.js +0 -5
  227. package/es/annotation/property_event_decorator.d.ts +0 -4
  228. package/es/annotation/property_event_decorator.js +0 -13
  229. package/es/annotation/tagged.js +0 -6
  230. package/es/annotation/target_name.d.ts +0 -3
  231. package/es/annotation/target_name.js +0 -10
  232. package/es/annotation/unmanaged.d.ts +0 -3
  233. package/es/annotation/unmanaged.js +0 -10
  234. package/es/bindings/binding.d.ts +0 -20
  235. package/es/bindings/binding.js +0 -37
  236. package/es/bindings/binding_count.d.ts +0 -5
  237. package/es/bindings/binding_count.js +0 -6
  238. package/es/constants/error_msgs.js +0 -62
  239. package/es/constants/literal_types.d.ts +0 -5
  240. package/es/constants/literal_types.js +0 -21
  241. package/es/constants/metadata_keys.js +0 -23
  242. package/es/container/container.d.ts +0 -75
  243. package/es/container/container.js +0 -750
  244. package/es/container/container_module.js +0 -17
  245. package/es/container/container_snapshot.d.ts +0 -10
  246. package/es/container/container_snapshot.js +0 -15
  247. package/es/container/lookup.d.ts +0 -17
  248. package/es/container/lookup.js +0 -105
  249. package/es/container/module_activation_store.js +0 -47
  250. package/es/interfaces/interfaces.js +0 -1
  251. package/es/inversify.js +0 -3
  252. package/es/inversify.js.LICENSE.txt +0 -14
  253. package/es/planning/context.js +0 -15
  254. package/es/planning/metadata.d.ts +0 -8
  255. package/es/planning/metadata.js +0 -17
  256. package/es/planning/metadata_reader.d.ts +0 -6
  257. package/es/planning/metadata_reader.js +0 -21
  258. package/es/planning/plan.js +0 -8
  259. package/es/planning/planner.js +0 -168
  260. package/es/planning/queryable_string.js +0 -28
  261. package/es/planning/reflection_utils.js +0 -27
  262. package/es/planning/request.js +0 -20
  263. package/es/planning/target.js +0 -87
  264. package/es/resolution/instantiation.d.ts +0 -3
  265. package/es/resolution/instantiation.js +0 -195
  266. package/es/resolution/resolver.js +0 -214
  267. package/es/scope/scope.js +0 -88
  268. package/es/syntax/binding_in_syntax.js +0 -21
  269. package/es/syntax/binding_in_when_on_syntax.js +0 -73
  270. package/es/syntax/binding_on_syntax.js +0 -16
  271. package/es/syntax/binding_to_syntax.d.ts +0 -18
  272. package/es/syntax/binding_to_syntax.js +0 -91
  273. package/es/syntax/binding_when_on_syntax.js +0 -62
  274. package/es/syntax/binding_when_syntax.d.ts +0 -21
  275. package/es/syntax/binding_when_syntax.js +0 -104
  276. package/es/syntax/constraint_helpers.js +0 -36
  277. package/es/utils/async.js +0 -12
  278. package/es/utils/binding_utils.js +0 -58
  279. package/es/utils/clonable.js +0 -7
  280. package/es/utils/exceptions.js +0 -16
  281. package/es/utils/factory_type.d.ts +0 -5
  282. package/es/utils/factory_type.js +0 -6
  283. package/es/utils/id.js +0 -5
  284. package/es/utils/js.js +0 -13
  285. package/es/utils/serialization.js +0 -103
  286. package/lib/annotation/decorator_utils.d.ts +0 -16
  287. package/lib/annotation/inject.d.ts +0 -5
  288. package/lib/annotation/inject_base.d.ts +0 -4
  289. package/lib/annotation/injectable.d.ts +0 -2
  290. package/lib/annotation/lazy_service_identifier.d.ts +0 -3
  291. package/lib/annotation/named.d.ts +0 -2
  292. package/lib/annotation/optional.d.ts +0 -2
  293. package/lib/annotation/post_construct.d.ts +0 -4
  294. package/lib/annotation/pre_destroy.d.ts +0 -4
  295. package/lib/annotation/tagged.d.ts +0 -2
  296. package/lib/constants/error_msgs.d.ts +0 -30
  297. package/lib/constants/metadata_keys.d.ts +0 -13
  298. package/lib/container/container_module.d.ts +0 -11
  299. package/lib/container/module_activation_store.d.ts +0 -10
  300. package/lib/inversify.d.ts +0 -25
  301. package/lib/planning/context.d.ts +0 -11
  302. package/lib/planning/plan.d.ts +0 -7
  303. package/lib/planning/planner.d.ts +0 -5
  304. package/lib/planning/queryable_string.d.ts +0 -10
  305. package/lib/planning/reflection_utils.d.ts +0 -5
  306. package/lib/planning/request.d.ts +0 -14
  307. package/lib/planning/target.d.ts +0 -23
  308. package/lib/planning/target.js +0 -113
  309. package/lib/resolution/resolver.d.ts +0 -3
  310. package/lib/scope/scope.d.ts +0 -3
  311. package/lib/syntax/binding_in_syntax.d.ts +0 -9
  312. package/lib/syntax/binding_in_when_on_syntax.d.ts +0 -29
  313. package/lib/syntax/binding_on_syntax.d.ts +0 -8
  314. package/lib/syntax/binding_when_on_syntax.d.ts +0 -25
  315. package/lib/syntax/constraint_helpers.d.ts +0 -6
  316. package/lib/tsconfig.tsbuildinfo +0 -1
  317. package/lib/utils/async.d.ts +0 -3
  318. package/lib/utils/binding_utils.d.ts +0 -4
  319. package/lib/utils/clonable.d.ts +0 -3
  320. package/lib/utils/exceptions.d.ts +0 -2
  321. package/lib/utils/id.d.ts +0 -2
  322. package/lib/utils/js.d.ts +0 -1
  323. package/lib/utils/serialization.d.ts +0 -10
  324. /package/{es → lib/esm}/package.json +0 -0
@@ -1,23 +0,0 @@
1
- export var NAMED_TAG = 'named';
2
- export var NAME_TAG = 'name';
3
- export var UNMANAGED_TAG = 'unmanaged';
4
- export var OPTIONAL_TAG = 'optional';
5
- export var INJECT_TAG = 'inject';
6
- export var MULTI_INJECT_TAG = 'multi_inject';
7
- export var TAGGED = 'inversify:tagged';
8
- export var TAGGED_PROP = 'inversify:tagged_props';
9
- export var PARAM_TYPES = 'inversify:paramtypes';
10
- export var DESIGN_PARAM_TYPES = 'design:paramtypes';
11
- export var POST_CONSTRUCT = 'post_construct';
12
- export var PRE_DESTROY = 'pre_destroy';
13
- function getNonCustomTagKeys() {
14
- return [
15
- INJECT_TAG,
16
- MULTI_INJECT_TAG,
17
- NAME_TAG,
18
- UNMANAGED_TAG,
19
- NAMED_TAG,
20
- OPTIONAL_TAG,
21
- ];
22
- }
23
- export var NON_CUSTOM_TAG_KEYS = getNonCustomTagKeys();
@@ -1,75 +0,0 @@
1
- import { interfaces } from '../interfaces/interfaces';
2
- declare class Container implements interfaces.Container {
3
- id: number;
4
- parent: interfaces.Container | null;
5
- readonly options: interfaces.ContainerOptions;
6
- private _middleware;
7
- private _bindingDictionary;
8
- private _activations;
9
- private _deactivations;
10
- private readonly _snapshots;
11
- private _metadataReader;
12
- private _moduleActivationStore;
13
- constructor(containerOptions?: interfaces.ContainerOptions);
14
- static merge(container1: interfaces.Container, container2: interfaces.Container, ...containers: interfaces.Container[]): interfaces.Container;
15
- load(...modules: interfaces.ContainerModule[]): void;
16
- loadAsync(...modules: interfaces.AsyncContainerModule[]): Promise<void>;
17
- unload(...modules: interfaces.ContainerModuleBase[]): void;
18
- unloadAsync(...modules: interfaces.ContainerModuleBase[]): Promise<void>;
19
- bind<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>): interfaces.BindingToSyntax<T>;
20
- rebind<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>): interfaces.BindingToSyntax<T>;
21
- rebindAsync<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>): Promise<interfaces.BindingToSyntax<T>>;
22
- unbind(serviceIdentifier: interfaces.ServiceIdentifier): void;
23
- unbindAsync(serviceIdentifier: interfaces.ServiceIdentifier): Promise<void>;
24
- unbindAll(): void;
25
- unbindAllAsync(): Promise<void>;
26
- onActivation<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>, onActivation: interfaces.BindingActivation<T>): void;
27
- onDeactivation<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>, onDeactivation: interfaces.BindingDeactivation<T>): void;
28
- isBound(serviceIdentifier: interfaces.ServiceIdentifier<unknown>): boolean;
29
- isCurrentBound<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>): boolean;
30
- isBoundNamed(serviceIdentifier: interfaces.ServiceIdentifier, named: string | number | symbol): boolean;
31
- isBoundTagged(serviceIdentifier: interfaces.ServiceIdentifier, key: string | number | symbol, value: unknown): boolean;
32
- snapshot(): void;
33
- restore(): void;
34
- createChild(containerOptions?: interfaces.ContainerOptions): Container;
35
- applyMiddleware(...middlewares: interfaces.Middleware[]): void;
36
- applyCustomMetadataReader(metadataReader: interfaces.MetadataReader): void;
37
- get<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>): T;
38
- getAsync<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>): Promise<T>;
39
- getTagged<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>, key: string | number | symbol, value: unknown): T;
40
- getTaggedAsync<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>, key: string | number | symbol, value: unknown): Promise<T>;
41
- getNamed<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>, named: string | number | symbol): T;
42
- getNamedAsync<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>, named: string | number | symbol): Promise<T>;
43
- getAll<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>): T[];
44
- getAllAsync<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>): Promise<T[]>;
45
- getAllTagged<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>, key: string | number | symbol, value: unknown): T[];
46
- getAllTaggedAsync<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>, key: string | number | symbol, value: unknown): Promise<T[]>;
47
- getAllNamed<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>, named: string | number | symbol): T[];
48
- getAllNamedAsync<T>(serviceIdentifier: interfaces.ServiceIdentifier<T>, named: string | number | symbol): Promise<T[]>;
49
- resolve<T>(constructorFunction: interfaces.Newable<T>): T;
50
- private _preDestroy;
51
- private _removeModuleHandlers;
52
- private _removeModuleBindings;
53
- private _deactivate;
54
- private _handleDeactivationError;
55
- private _deactivateContainer;
56
- private _deactivateContainerAsync;
57
- private _getContainerModuleHelpersFactory;
58
- private _bind;
59
- private _buildBinding;
60
- private _getAll;
61
- private _get;
62
- private _getButThrowIfAsync;
63
- private _getAllArgs;
64
- private _getNotAllArgs;
65
- private _planAndResolve;
66
- private _deactivateIfSingleton;
67
- private _deactivateSingletons;
68
- private _deactivateSingletonsAsync;
69
- private _propagateContainerDeactivationThenBindingAndPreDestroy;
70
- private _propagateContainerDeactivationThenBindingAndPreDestroyAsync;
71
- private _removeServiceFromDictionary;
72
- private _bindingDeactivationAndPreDestroy;
73
- private _bindingDeactivationAndPreDestroyAsync;
74
- }
75
- export { Container };