@ts-intl/dependency
Version:
I18n keys dependency analysis
28 lines • 882 B
TypeScript
import { IContext, IOpts } from '../types';
/**
* collect graph of given path, no recursion
* @param module
* @param madgeConfig
* @returns
*/
export declare const getDependenciesNoRecursion: (module: string, madgeConfig: IOpts['madgeConfig']) => Promise<string[]>;
export declare const getModulesDependencies: (modules: string[], graph: IContext['graph']) => Record<string, boolean>;
/**
* generate new graph without given module
* @param module
* @param graph
* @returns
*/
export declare const deleteModule: (module: string, graph: IContext['graph']) => Promise<{
[x: string]: string[];
}>;
/**
* generate new graph with changed module
* @param module
* @param graph
* @returns
*/
export declare const changeModule: (fromModule: string, toModule: string, graph: IContext['graph']) => Promise<{
[x: string]: string[];
}>;
//# sourceMappingURL=graph.d.ts.map