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 ccdddf5 commit aaddbb5Copy full SHA for aaddbb5
packages/complex-types/src/core/printer.ts
@@ -63,8 +63,10 @@ export class Printer {
63
const isMapped = ts.isMappedTypeNode(node);
64
for (const property of properties) {
65
const questionToken = isMapped
66
- ? node.questionToken?.getText() ?? ""
67
- : (property.flags & ts.SymbolFlags.Optional ? "?" : "");
+ ? (node.questionToken?.getText() ?? "")
+ : property.flags & ts.SymbolFlags.Optional
68
+ ? "?"
69
+ : "";
70
71
const valueType = this.checker.getTypeOfSymbol(property);
72
const stringValueType = this.checker.typeToString(
0 commit comments