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

Function extractDirectiveDef

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

Source from the content-addressed store, hash-verified

379}
380
381export function extractDirectiveDef(type: Type<any>): DirectiveDef<any> | ComponentDef<any> | null {
382 return getComponentDef(type) || getDirectiveDef(type);
383}
384
385/**
386 * @codeGenApi

Callers 1

constructorMethod · 0.90

Calls 2

getComponentDefFunction · 0.90
getDirectiveDefFunction · 0.90

Tested by

no test coverage detected