Skip to content

Commit

Permalink
docs: fix some typo in read me file
Browse files Browse the repository at this point in the history
  • Loading branch information
Evyweb committed Sep 8, 2024
1 parent 881b7ca commit 4b91595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ const MyService = (dependencies: { dep1: string, dep2: number }) => {
container.bind(DI.HIGHER_ORDER_FUNCTION_WITH_DEPENDENCIES)
.toHigherOrderFunction(MyServiceWithDependencies, { dep1: DI.DEP1, dep2: DI.DEP2 });

// 4. For more complexe cases, you can register a factory so myService will be injected
// 4. For more complex cases, you can register a factory
container.bind(DI.MY_USE_CASE).toFactory(() => {
// Do something before creating the instance
return MyUseCase({
Expand Down

0 comments on commit 4b91595

Please sign in to comment.