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

Function getTypeName

packages/upgrade/src/common/src/util.ts:80–83  ·  view source on GitHub ↗
(type: Type<any>)

Source from the content-addressed store, hash-verified

78}
79
80export function getTypeName(type: Type<any>): string {
81 // Return the name of the type or the first line of its stringified version.
82 return (type as any).overriddenName || type.name || type.toString().split('\n')[0];
83}
84
85export function getDowngradedModuleCount($injector: IInjectorService): number {
86 return $injector.has(DOWNGRADED_MODULE_COUNT_KEY)

Callers 3

directiveFactoryFunction · 0.90
factoryFunction · 0.90
subscribeToOutputMethod · 0.90

Calls 1

toStringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…