We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7833119 commit eb7ac89Copy full SHA for eb7ac89
src/container.ts
@@ -12,7 +12,11 @@ import { Types } from './constants/Types';
12
13
import * as request from 'request';
14
15
-
+/**
16
+ * Here you can bind all your third-party libraries like
17
+ * request, lodash and so on. Those will be bound before
18
+ * everything else.
19
+ */
20
ioc.configureLib((container: Container) => {
21
22
decorate(injectable(), request);
@@ -25,9 +29,12 @@ ioc.configureLib((container: Container) => {
25
29
return container;
26
30
});
27
31
28
32
33
+ * Bind custom classes here. This will be bound at the end
34
35
ioc.configure((container: Container) => {
36
37
+ // Add your custom class here
38
39
40
0 commit comments