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

Function isDirective

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

Source from the content-addressed store, hash-verified

27}
28
29export function isDirective<T>(value: Type<T>): value is DirectiveType<T> {
30 return !!getDirectiveDef(value);
31}
32
33export function isComponent<T>(value: Type<T>): value is ComponentType<T> {
34 return !!getComponentDef(value);

Callers 2

computeNgModuleScopeMethod · 0.90

Calls 1

getDirectiveDefFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…