(type: Type<any>)
| 949 | } |
| 950 | |
| 951 | function getFactoryOf<T>(type: Type<any>): ((type?: Type<T>) => T | null) | null { |
| 952 | if (isForwardRef(type)) { |
| 953 | return () => { |
| 954 | const factory = getFactoryOf<T>(resolveForwardRef(type)); |
| 955 | return factory && factory(); |
| 956 | }; |
| 957 | } |
| 958 | return getFactoryDef<T>(type); |
| 959 | } |
| 960 | |
| 961 | /** |
| 962 | * Returns a value from the closest embedded or node injector. |
no test coverage detected
searching dependent graphs…