Function toTagOrDefinition

  • Reduce an element down to its tag name or its element definition if it's a custom element defined by element-vir. Note that the types for this won't work in your project if you use custom element tag names that aren't generated via element-vir.

    Parameters

    • element: Element

    Returns DeclarativeElementDefinition | SpecTagName