@devlander/collect-exports-for-bundle
Version:
Generate comprehensive export files for TypeScript/JavaScript projects with Rollup compatibility
15 lines (14 loc) • 412 B
TypeScript
export declare enum ExportType {
named = "named",
default = "default"
}
export interface FuncItem {
exportType: ExportType;
name: string;
}
export interface MatchItem {
path: string;
functionNames?: FuncItem[];
functionTypes?: FuncItem[];
}
export declare function createExportMatches(filePaths: string[], usedFunctionNames: Set<string>, usedFunctionTypes: Set<string>): MatchItem[];