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

Function isStandaloneComponent

packages/core/testing/src/test_bed_compiler.ts:1152–1155  ·  view source on GitHub ↗
(value: Type<T>)

Source from the content-addressed store, hash-verified

1150}
1151
1152function isStandaloneComponent<T>(value: Type<T>): value is ComponentType<T> {
1153 const def = getComponentDef(value);
1154 return !!def?.standalone;
1155}
1156
1157function getComponentDef(value: ComponentType<unknown>): ComponentDef<unknown>;
1158function getComponentDef(value: Type<unknown>): ComponentDef<unknown> | null;

Calls 1

getComponentDefFunction · 0.70

Tested by

no test coverage detected