Skip to content

Commit 5f1336b

Browse files
author
Kanchalai Tanglertsampan
committed
Update LKG
1 parent c98103b commit 5f1336b

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

lib/tsc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13848,7 +13848,7 @@ var ts;
1384813848
checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation);
1384913849
}
1385013850
}
13851-
if (result && isInExternalModule) {
13851+
if (result && isInExternalModule && (meaning & 107455) === 107455) {
1385213852
var decls = result.declarations;
1385313853
if (decls && decls.length === 1 && decls[0].kind === 228) {
1385413854
error(errorLocation, ts.Diagnostics.Identifier_0_must_be_imported_from_a_module, name);

lib/tsserver.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14844,7 +14844,7 @@ var ts;
1484414844
checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation);
1484514845
}
1484614846
}
14847-
if (result && isInExternalModule) {
14847+
if (result && isInExternalModule && (meaning & 107455) === 107455) {
1484814848
var decls = result.declarations;
1484914849
if (decls && decls.length === 1 && decls[0].kind === 228) {
1485014850
error(errorLocation, ts.Diagnostics.Identifier_0_must_be_imported_from_a_module, name);

lib/tsserverlibrary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14844,7 +14844,7 @@ var ts;
1484414844
checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation);
1484514845
}
1484614846
}
14847-
if (result && isInExternalModule) {
14847+
if (result && isInExternalModule && (meaning & 107455) === 107455) {
1484814848
var decls = result.declarations;
1484914849
if (decls && decls.length === 1 && decls[0].kind === 228) {
1485014850
error(errorLocation, ts.Diagnostics.Identifier_0_must_be_imported_from_a_module, name);

lib/typescript.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17337,8 +17337,8 @@ var ts;
1733717337
checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation);
1733817338
}
1733917339
}
17340-
// If we're in an external module, we can't reference symbols created from UMD export declarations
17341-
if (result && isInExternalModule) {
17340+
// If we're in an external module, we can't reference value symbols created from UMD export declarations
17341+
if (result && isInExternalModule && (meaning & 107455 /* Value */) === 107455 /* Value */) {
1734217342
var decls = result.declarations;
1734317343
if (decls && decls.length === 1 && decls[0].kind === 228 /* NamespaceExportDeclaration */) {
1734417344
error(errorLocation, ts.Diagnostics.Identifier_0_must_be_imported_from_a_module, name);

lib/typescriptServices.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17337,8 +17337,8 @@ var ts;
1733717337
checkResolvedBlockScopedVariable(exportOrLocalSymbol, errorLocation);
1733817338
}
1733917339
}
17340-
// If we're in an external module, we can't reference symbols created from UMD export declarations
17341-
if (result && isInExternalModule) {
17340+
// If we're in an external module, we can't reference value symbols created from UMD export declarations
17341+
if (result && isInExternalModule && (meaning & 107455 /* Value */) === 107455 /* Value */) {
1734217342
var decls = result.declarations;
1734317343
if (decls && decls.length === 1 && decls[0].kind === 228 /* NamespaceExportDeclaration */) {
1734417344
error(errorLocation, ts.Diagnostics.Identifier_0_must_be_imported_from_a_module, name);

0 commit comments

Comments
 (0)