UNPKG

providence-analytics

Version:

Providence is the 'All Seeing Eye' that measures effectivity and popularity of software. Release management will become highly efficient due to an accurate impact analysis of (breaking) changes

34 lines (30 loc) 1.06 kB
import { PathRelativeFromProjectRoot, IdentifierName, RootFile, AnalyzerQueryResult, FindAnalyzerOutputFile, } from '../core/index.js'; export interface FindCustomelementsAnalyzerResult extends AnalyzerQueryResult { queryOutput: FindCustomelementsAnalyzerOutputFile[]; } export interface FindCustomelementsAnalyzerOutputFile extends FindAnalyzerOutputFile { /** path relative from project root for which a result is generated based on AST traversal */ file: PathRelativeFromProjectRoot; /** result of AST traversal for file in project */ result: FindCustomelementsAnalyzerEntry[]; } export interface FindCustomelementsAnalyzerEntry { /** * Tag name found in CE definition: * `customElements.define('my-name', MyConstructor)` => 'my-name' */ tagName: string; /** * Identifier found in CE definition: * `customElements.define('my-name', MyConstructor)` => MyConstructor */ constructorIdentifier: IdentifierName; /** Rootfile traced for constuctorIdentifier found in CE definition */ rootFile: RootFile; }