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