UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

24 lines (23 loc) 520 B
import { IImportType, IReplaceConfig } from './types'; /** * 解析替换配置 * * @param {Array<IReplaceConfig>} configList 配置列表 * @returns {array} 处理后的配置列表 * * @example * ```ts * parseReplaceConfig([{ * source: '', * target: '', * }]) * ``` */ export declare function parseReplaceConfig(configList: Array<IReplaceConfig>): { source: string; target: string; sourceName: string; sourceType: IImportType; targetName: string; targetType: IImportType; }[];