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