From 1a9c0bd09e037a5c154bb8ec6314df4d528a7f06 Mon Sep 17 00:00:00 2001 From: Fotis Koutoupas Date: Mon, 15 Nov 2021 08:53:17 +0200 Subject: [PATCH] Fix readme predicate-aware factory example typo (#185) --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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