MCPcopy Index your code
hub / github.com/angular/angular / resolveForwardRef

Function resolveForwardRef

packages/core/src/di/forward_ref.ts:93–95  ·  view source on GitHub ↗
(type: T)

Source from the content-addressed store, hash-verified

91 * @publicApi
92 */
93export function resolveForwardRef<T>(type: T): T {
94 return isForwardRef(type) ? type() : type;
95}
96
97/** Checks whether a function is wrapped by a `forwardRef`. */
98export function isForwardRef(fn: any): fn is () => any {

Callers 15

walkProviderTreeFunction · 0.90
validateProviderFunction · 0.90
ɵɵinjectFunction · 0.90
injectArgsFunction · 0.90
processProviderMethod · 0.90
injectableDefInScopeMethod · 0.90
providerToFactoryFunction · 0.90
getFactoryOfFunction · 0.90
resolveProviderFunction · 0.90
createHostDirectiveDefFunction · 0.90

Calls 2

isForwardRefFunction · 0.85
typeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…