File tree Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Expand file tree Collapse file tree 5 files changed +7
-7
lines changed Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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);
Original file line number Diff line number Diff 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);
You can’t perform that action at this time.
0 commit comments