mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-16 15:45:27 -05:00
Fix incorrect user defined type guard function in compiler
This commit is contained in:
@@ -7084,7 +7084,7 @@ const _super = (function (geti, seti) {
|
||||
hoistedVars = [];
|
||||
}
|
||||
|
||||
hoistedVars.push(node.name);
|
||||
hoistedVars.push((<ImportEqualsDeclaration>node).name);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -1178,7 +1178,7 @@ namespace ts {
|
||||
return (<ExternalModuleReference>(<ImportEqualsDeclaration>node).moduleReference).expression;
|
||||
}
|
||||
|
||||
export function isInternalModuleImportEqualsDeclaration(node: Node): node is ImportEqualsDeclaration {
|
||||
export function isInternalModuleImportEqualsDeclaration(node: Node): boolean {
|
||||
return node.kind === SyntaxKind.ImportEqualsDeclaration && (<ImportEqualsDeclaration>node).moduleReference.kind !== SyntaxKind.ExternalModuleReference;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user