diff --git a/README.md b/README.md index 9fe64fb..18f6be4 100644 --- a/README.md +++ b/README.md @@ -413,7 +413,8 @@ has an optional parameter to resolve fresh each time. import {predicateAwareClassFactory} from "tsyringe"; { - token: useFactory: predicateAwareClassFactory( + token: "FooHttp", + useFactory: predicateAwareClassFactory( c => c.resolve(Bar).useHttps, // Predicate for evaluation FooHttps, // A FooHttps will be resolved from the container if predicate is true FooHttp // A FooHttp will be resolved if predicate is false