You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A type-safe alternative to module.bind(token).toClass(classs, deps) that automatically ensures that all dependencies required by the Class are provided.
6
-
* It assumes that dependencies are stored under the `deps` property of the Class, which is a good convention to follow anyway
8
+
* It assumes that dependencies are passed to the constructor as an object map(e.g. new MyService(deps))
7
9
*
8
10
* @returns A function that can be used to load the dependencies into the container automatically.
* A type-safe alternative to module.bind(token).toClass(classs, deps) that automatically ensures that all dependencies required by the Class are provided.
33
+
* It assumes that there is a single dependency, passed as argument to the constructor
34
+
*
35
+
* @returns A function that can be used to load the dependencies into the container automatically.
* A type-safe alternative to module.bind(token).toClass(classs, deps) that automatically ensures that all dependencies required by the Class are provided.
54
+
* @returns A function that can be used to load the dependencies into the container automatically.
0 commit comments