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

Function isComponent

packages/core/src/render3/jit/util.ts:33–35  ·  view source on GitHub ↗
(value: Type<T>)

Source from the content-addressed store, hash-verified

31}
32
33export function isComponent<T>(value: Type<T>): value is ComponentType<T> {
34 return !!getComponentDef(value);
35}
36
37function getDependencyTypeForError(type: Type<any>) {
38 if (getComponentDef(type)) return 'component';

Callers 5

directiveDefsFunction · 0.90
pipeDefsFunction · 0.90
resolveNgModulesDeclsMethod · 0.90
computeNgModuleScopeMethod · 0.90

Calls 1

getComponentDefFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…