mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-15 21:36:50 -05:00
Fix declaration emitted crash on mapped type with no type (#22213)
This commit is contained in:
@@ -608,7 +608,12 @@ namespace ts {
|
||||
"?");
|
||||
}
|
||||
write(": ");
|
||||
emitType(node.type);
|
||||
if (node.type) {
|
||||
emitType(node.type);
|
||||
}
|
||||
else {
|
||||
write("any");
|
||||
}
|
||||
write(";");
|
||||
writeLine();
|
||||
decreaseIndent();
|
||||
|
||||
Reference in New Issue
Block a user