ComponentDef: {
    define<TClass>(this: void, componentType: TClass, ...defs: (QualifiedName | ComponentDef<InstanceType<TClass>>)[]): TClass;
    merge<T>(this: void, ...defs: (QualifiedName | ComponentDef<T>)[]): ComponentDef<T>;
    of<T>(this: void, componentType: ComponentClass<T>): ComponentDef<T>;
}

Type declaration

  • define:function
    • Defines a component.

      Either assigns new or extends existing component definition and stores it under ComponentDef__symbol key.

      Each component can be passed directly to bootstrapComponents function or added as a requirement of another feature.

      Returns

      The type instance.

      Type Parameters

      • TClass extends ComponentClass<any, TClass>

        A type of component class.

      Parameters

      • this: void
      • componentType: TClass

        Component class constructor.

      • Rest ...defs: (QualifiedName | ComponentDef<InstanceType<TClass>>)[]

        Component definitions.

      Returns TClass

  • merge:function
  • of:function

Generated using TypeDoc