Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IComponentClass<TProps, TEvents>

Interface that defines constructor signature for components.

Type parameters

  • TProps: {} = {}

    Type defining properties that can be passed to the class-based component of this type. Default type is an empty object (no properties).

  • TEvents: {} = {}

    Type that maps event names (a.k.a event types) to either Event-derived classes (e.g. MouseEvent) or any other type. The latter will be interpreted as a type of the detail property of a CustomEvent.

Hierarchy

  • IComponentClass

Index

Constructors

Constructors

constructor