Exposes a component by combining it with additional configuration details.
@template T - The type of the Angular component.
API
declare function exposeComponent<
T extends {
new (...args: any[]): any;
},
>(
component: T,
config: _types.Prettify <
Omit <
ExposedComponent <T>,
"component" | "name" | "props"
> & {
input?: ComponentPropSchema <T>;
}
>,
): ExposedComponent <T>;
exposeComponent
ExposedComponent<T>
@param
component:
T
The Angular component to be exposed.
@param
config:
_types.Prettify<Omit<ExposedComponent<T>, 'component' | 'name' | 'props'> & {
input?: ComponentPropSchema<T>;
}>
The configuration object for the component, excluding the component itself.
@type
T
{
new (...args: any[]): any;
}
@returns
ExposedComponent<T>