Skip to content

Commit b2e0a2f

Browse files
authored
Merge pull request #76 from codemilli/patch-1
Interface Factory added in example
2 parents 6bd862f + e6817a1 commit b2e0a2f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ With TypeDI you can use a named services. Example:
8080
```javascript
8181
var Container = require("typedi").Container;
8282

83+
interface Factory {
84+
create(): void;
85+
}
86+
8387
class BeanFactory implements Factory {
8488
create() {
8589
}

0 commit comments

Comments
 (0)