!112 补充对export type的mock处理

Merge pull request !112 from 程顺/master
This commit is contained in:
openharmony_ci
2023-08-26 01:31:47 +00:00
committed by Gitee
@@ -135,6 +135,9 @@ export function generateSourceFileElements(rootName: string, sourceFileEntity: S
}
if (sourceFileEntity.exportDeclarations.length > 0) {
sourceFileEntity.exportDeclarations.forEach(value => {
if (value.includes('export type {')) {
return;
}
if (!value.includes('export {')) {
mockApi += `${value}\n`;
}