mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-14 16:56:06 -05:00
Properly handle inferred type parameters in declaration emitter
This commit is contained in:
@@ -554,7 +554,10 @@ namespace ts {
|
||||
write(" extends ");
|
||||
emitType(node.extendsType);
|
||||
write(" ? ");
|
||||
const prevEnclosingDeclaration = enclosingDeclaration;
|
||||
enclosingDeclaration = node.trueType;
|
||||
emitType(node.trueType);
|
||||
enclosingDeclaration = prevEnclosingDeclaration;
|
||||
write(" : ");
|
||||
emitType(node.falseType);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user