Skip to content

Commit 7069f67

Browse files
committed
refactor: remove method which is not reused anywhere else
1 parent 68b4a9f commit 7069f67

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/complex-types/src/core/printer.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,6 @@ export class Printer {
2727
].join(separator);
2828
}
2929

30-
private isSymbolOptional(symbol: ts.Symbol): boolean {
31-
return !!(symbol.flags & ts.SymbolFlags.Optional);
32-
}
33-
3430
private printConditionType(type: ts.ConditionalType, inner: boolean): string {
3531
const decl = type.root.node;
3632
const { trueType, falseType } = decl;
@@ -95,7 +91,7 @@ export class Printer {
9591

9692
props[name] = {
9793
value: this.printType(propType, true),
98-
isOptional: this.isSymbolOptional(prop),
94+
isOptional: !!(prop.flags & ts.SymbolFlags.Optional),
9995
};
10096
}
10197

0 commit comments

Comments
 (0)