banira
    Preparing search index...

    Function toTypeDefinitions

    • Generates a self-contained .d.ts from a Custom Elements Manifest: one HTMLElement-extending interface per custom element plus an HTMLElementTagNameMap augmentation, so document.querySelector('my-el') and document.createElement('my-el') are correctly typed with no runtime import. With { jsx: true } it also augments JSX.IntrinsicElements.

      Parameters

      Returns string