Skip to content

Commit e6817a1

Browse files
authored
Interface Factory added in example
1 parent ba2d73f commit e6817a1

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)