Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface WebElmConstructor<TElm, TAttrs, TEvents>

Represents a constructor for the HTMLElement-derived classes.

Type parameters

  • TElm: HTMLElement = HTMLElement

    Class deriving from HTMLElement, from which the resulting class will inherit.

  • TAttrs: {} = {}

    Type that maps attribute names to attribute types.

  • 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

  • WebElmConstructor

Index

Constructors

Constructors

constructor

  • new WebElmConstructor(): TElm & IWebElm<TAttrs, TEvents>
  • Returns TElm & IWebElm<TAttrs, TEvents>