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

Function getInjectableDef

packages/core/src/di/interface/defs.ts:207–209  ·  view source on GitHub ↗
(type: any)

Source from the content-addressed store, hash-verified

205 * @param type A type which may have its own (non-inherited) `ɵprov`.
206 */
207export function getInjectableDef<T>(type: any): ɵɵInjectableDeclaration<T> | null {
208 return getOwnDefinition(type, NG_PROV_DEF);
209}
210
211export function isInjectable(type: any): boolean {
212 return getInjectableDef(type) !== null;

Callers 5

injectRootLimpModeFunction · 0.90
getMethod · 0.90
isInjectableFunction · 0.85
overrideProviderMethod · 0.85

Calls 1

getOwnDefinitionFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…