Is there a typescript interface for html custom elemnt?

Viewed 122

I am trying to implement a web custom element in typescript. I have found that the custom element gets its life cycle callbacks like

  • connectedCallback()
  • adoptedCallback()
  • attributeChangedCallback()

Is there a typescript interface for these callbacks? I can write these methods with appropriate signature but I would prefer to use an existing definition.

0 Answers
Related