Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Dec 23, 2024
1 parent bc8f248 commit 1aff8c5
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions sphinx_js/js/convertType.ts
Original file line number Diff line number Diff line change
@@ -299,18 +299,17 @@ class TypeConverter implements TypeVisitor<Type> {
}

reference(type: ReferenceType): Type {
// if we got a reflection use that. It's not all that clear how to deal
// with type arguments here though...
const res = this.convertPrivateReferenceToReflection(type);
if (res) {
return res;
}
if (type.isIntentionallyBroken()) {
// If it's intentionally broken, don't add an xref. It's probably a type
// parameter.
return this.addTypeArguments(type, [type.name]);
} else {
// if we got a reflection use that. It's not all that clear how to deal
// with type arguments here though...
const res = this.convertPrivateReferenceToReflection(type);
// else use convertReferenceToXRef
if (res) {
return res;
}
return this.convertReferenceToXRef(type);
}
}

0 comments on commit 1aff8c5

Please sign in to comment.