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

Function isDirective

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

Source from the content-addressed store, hash-verified

32}
33
34export function isDirective<T>(value: Type<T>): value is DirectiveType<T> {
35 return !!getDirectiveDef(value);
36}
37
38export function isComponent<T>(value: Type<T>): value is ComponentType<T> {
39 return !!getComponentDef(value);

Callers 2

computeNgModuleScopeMethod · 0.90

Calls 1

getDirectiveDefFunction · 0.90

Tested by

no test coverage detected