t-comm
Version:
专业、稳定、纯粹的工具库
26 lines (25 loc) • 686 B
TypeScript
export declare enum IImportType {
ImportSpecifier = "ImportSpecifier",
ImportDefaultSpecifier = "ImportDefaultSpecifier",
importNamespaceSpecifier = "ImportNamespaceSpecifier",
FAKE = "FAKE"
}
export type IImportItem = string | Array<string> | {
sourceName?: string;
sourceType?: IImportType;
targetName?: string;
targetType?: IImportType;
};
export type IReplaceConfig = {
importedList: Array<IImportItem>;
source: string | Array<string>;
target: string;
};
export type IParsedConfigItem = {
source: string;
target: string;
sourceName: string;
sourceType: IImportType;
targetName: string;
targetType: IImportType;
};