mirror of
https://github.com/openharmony/third_party_jsframework.git
synced 2026-07-19 22:43:32 -04:00
Signed-off-by: fupengfei001 <fupengfei6@huawei.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user