We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04260d6 commit 4ae8445Copy full SHA for 4ae8445
src/compiler/emitter.ts
@@ -1196,16 +1196,23 @@ namespace ts {
1196
1197
function emitConditionalType(node: ConditionalTypeNode) {
1198
emit(node.checkType);
1199
- write(" extends ");
+ writeSpace();
1200
+ writeKeyword("extends");
1201
1202
emit(node.extendsType);
- write(" ? ");
1203
1204
+ writePunctuation("?");
1205
1206
emit(node.trueType);
- write(" : ");
1207
1208
+ writePunctuation(":");
1209
1210
emit(node.falseType);
1211
}
1212
1213
function emitInferType(node: InferTypeNode) {
- write("infer ");
1214
+ writeKeyword("infer");
1215
1216
emit(node.typeParameter);
1217
1218
0 commit comments