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 0441ff5 commit 486af96Copy full SHA for 486af96
packages/complex-types/src/core/printer.ts
@@ -86,13 +86,6 @@ export class Printer {
86
> = {};
87
for (const prop of properties) {
88
const propType = this.checker.getTypeOfSymbol(prop);
89
- const node = prop.declarations?.[0];
90
- const hasQuestionToken = !!(
91
- node &&
92
- ts.isPropertySignature(node) &&
93
- node.questionToken
94
- );
95
-
96
props[prop.getName()] = {
97
value: this.printType(propType, true),
98
isOptional: this.isSymbolOptional(prop),
0 commit comments