hashbrown

exposeComponent

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>
@paramcomponent:
T

The Angular component to be exposed.

@paramconfig:
_types.Prettify<Omit<ExposedComponent<T>, 'component' | 'name' | 'props'> & {
    input?: ComponentPropSchema<T>;
}>

The configuration object for the component, excluding the component itself.

@typeT
{
    new (...args: any[]): any;
}
@returns
ExposedComponent<T>