diff --git a/mock-generate/src/declaration-node/importAndExportDeclaration.ts b/mock-generate/src/declaration-node/importAndExportDeclaration.ts index 514a5b35..4d502782 100644 --- a/mock-generate/src/declaration-node/importAndExportDeclaration.ts +++ b/mock-generate/src/declaration-node/importAndExportDeclaration.ts @@ -68,6 +68,9 @@ export function getImportDeclaration(node: Node, sourceFile: SourceFile): Import const importClause = importNode.importClause; if (importClause !== undefined) { importElements = sourceFile.text.substring(importClause.pos, importClause.end).trimStart().trimEnd(); + if (importElements.startsWith('type ')) { + importElements = importElements.replace('type ', ''); + } } return {