UNPKG

mp-lens

Version:

微信小程序分析工具 (Unused Code, Dependencies, Visualization)

12 lines (11 loc) 610 B
import { LintIssue } from './types'; /** * Performs component usage linting by comparing declarations with usage * * @param wxmlFilePath Path to the WXML file * @param jsonFilePath Path to the corresponding JSON file * @param usedTagToFiles Map<tag, Set<wxmlFile>> * @param globalComponents Object containing globally declared components from app.json * @returns Lint issue object containing any identified problems */ export declare function lintComponentUsage(wxmlFilePath: string, jsonFilePath: string, usedTagToFiles: Map<string, Set<string>>, globalComponents: Record<string, string>): LintIssue;