Skip to content

Commit

Permalink
refactor: optional chaining (#942)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz committed Sep 17, 2021
1 parent 7be6567 commit 1035f84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/NodeParser/TypeReferenceNodeParser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export class TypeReferenceNodeParser implements SubNodeParser {

private createSubContext(node: ts.TypeReferenceNode, parentContext: Context): Context {
const subContext = new Context(node);
if (node.typeArguments && node.typeArguments.length) {
if (node.typeArguments?.length) {
for (const typeArg of node.typeArguments) {
const type = this.childNodeParser.createType(typeArg, parentContext);
subContext.pushArgument(type);
Expand Down

0 comments on commit 1035f84

Please sign in to comment.