MCPcopy Create free account
hub / github.com/angular/angular / resolveForwardRef

Function resolveForwardRef

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

Source from the content-addressed store, hash-verified

90 * @publicApi
91 */
92export function resolveForwardRef<T>(type: T): T {
93 return isForwardRef(type) ? type() : type;
94}
95
96/** Checks whether a function is wrapped by a `forwardRef`. */
97export 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