mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-24 20:44:53 -05:00
Merge pull request #16194 from Microsoft/fix-reexported-missing-alias
Fix reexported missing alias
This commit is contained in:
@@ -1370,6 +1370,9 @@ namespace ts {
|
||||
// An 'import { Point } from "graphics"' needs to create a symbol that combines the value side 'Point'
|
||||
// property with the type/namespace side interface 'Point'.
|
||||
function combineValueAndTypeSymbols(valueSymbol: Symbol, typeSymbol: Symbol): Symbol {
|
||||
if (valueSymbol === unknownSymbol && typeSymbol === unknownSymbol) {
|
||||
return unknownSymbol;
|
||||
}
|
||||
if (valueSymbol.flags & (SymbolFlags.Type | SymbolFlags.Namespace)) {
|
||||
return valueSymbol;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user