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

Function isNgModule

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

Source from the content-addressed store, hash-verified

19}
20
21export function isNgModule<T>(value: Type<T>): value is Type<T> & {ɵmod: NgModuleDef<T>} {
22 return !!getNgModuleDef(value);
23}
24
25export function isPipe<T>(value: Type<T>): value is PipeType<T> {
26 return !!getPipeDef(value);

Callers 6

transitiveScopesForFunction · 0.90
registerNgModuleMethod · 0.90
computeNgModuleScopeMethod · 0.90
assertStandaloneFunction · 0.50

Calls 1

getNgModuleDefFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…