Skip to content

Commit

Permalink
fix: Don't document type arguments if there are none (#1451)
Browse files Browse the repository at this point in the history
  • Loading branch information
krisztianb authored Jan 4, 2021
1 parent d64aee3 commit 894f92f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/models/types/reference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ export class ReferenceType extends Type {
toString() {
const name = this.reflection ? this.reflection.name : this.name;
let typeArgs = "";
if (this.typeArguments) {

if (this.typeArguments && this.typeArguments.length > 0) {
typeArgs += "<";
typeArgs += this.typeArguments
.map((arg) => arg.toString())
Expand Down

0 comments on commit 894f92f

Please sign in to comment.