You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dip/Dip/Definition.swift
+8-1
Original file line number
Diff line number
Diff line change
@@ -56,7 +56,14 @@ public enum ComponentScope {
56
56
case Singleton
57
57
}
58
58
59
-
///Definition of type T describes how instances of this type should be created when they are resolved by container.
59
+
/**
60
+
Definition of type T describes how instances of this type should be created when this type is resolved by container.
61
+
62
+
- Generic parameter `T` is the type of the instance to resolve
63
+
- Generic parameter `F` is the type of block-factory that creates an instance of T.
64
+
65
+
For example `DefinitionOf<Service,(String)->Service>` is the type of definition that during resolution will produce instance of type `Service` using closure that accepts `String` argument.
0 commit comments