UNPKG

@custom-elements-manifest/helpers

Version:
26 lines 1.19 kB
import { Package, JavaScriptModule, FunctionDeclaration, CustomElement, VariableDeclaration, ClassDeclaration } from 'custom-elements-manifest/schema'; export declare class CustomElementsJson { #private; schemaVersion: string; readme: string; modules: JavaScriptModule[]; constructor({ schemaVersion, readme, modules }?: Package); private loopAll; reset(): void; private init; getByTagName(tagName: string): CustomElement; getByClassName(className: string): CustomElement; getByMixinName(className: string): CustomElement; /** Gets all classes from declarations */ getClasses(): any[]; /** Gets registered custom elements, so elements that have customElements.define called, returns class including tagName */ getTagNames(): any[]; /** Gets all CustomElementDefinitions */ getDefinitions(): any[]; getMixins(): any[]; getInheritanceTree(className: string): (ClassDeclaration | FunctionDeclaration | VariableDeclaration)[]; getModuleForClass(className: string): string | undefined; getModuleForMixin(className: string): string | undefined; } export * from './helpers'; //# sourceMappingURL=index.d.ts.map