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

Function extractDirectiveDef

packages/core/src/render3/definition.ts:387–389  ·  view source on GitHub ↗
(type: Type<any>)

Source from the content-addressed store, hash-verified

385}
386
387export function extractDirectiveDef(type: Type<any>): DirectiveDef<any> | ComponentDef<any> | null {
388 return getComponentDef(type) || getDirectiveDef(type);
389}
390
391/**
392 * @codeGenApi

Callers 1

constructorMethod · 0.90

Calls 2

getComponentDefFunction · 0.90
getDirectiveDefFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…