Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to get typeParameters in >v0.25.5 #2474

Closed
nborko opened this issue Jan 4, 2024 · 3 comments
Closed

How to get typeParameters in >v0.25.5 #2474

nborko opened this issue Jan 4, 2024 · 3 comments
Labels
question Question about functionality

Comments

@nborko
Copy link

nborko commented Jan 4, 2024

Search terms

Since v0.25.5, the typeParameters of a DeclarationReference for a generic type is empty.

Question

In v0.25.5 and above, when using a TypeVisitor, processing a reference for a generic type has an empty typeParameters list except for the most simple cases. What is the new API for processing typeParameters? I don't see anything in the Changelog mentioning this breaking change.

Thanks!

@nborko nborko added the question Question about functionality label Jan 4, 2024
@nborko
Copy link
Author

nborko commented Jan 4, 2024

Upon further inspection, it doesn't appear that the type hierarchy is correct at all. For example, I have a type that refers to a generic type with an enum argument, and I end up with each of the enum members as a DeclarationReflection instead of the enumeration itself.

Unfortunately I have a somewhat complicated TypeVisitor, and I honestly don't know enough about the inner workings of the typedoc model to provide a minimal reproduction.

@Gerrit0
Copy link
Collaborator

Gerrit0 commented Jan 8, 2024

0.25.5 includes an attempted fix for #2451, which has caused several strange issues with the type converter, it sounds to me like there's another issue with it

@nborko
Copy link
Author

nborko commented Jan 9, 2024

It looks like it's fixed in 0.25.7, so closing this (the generic types in question were, in fact, unions). Thanks!

@nborko nborko closed this as completed Jan 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Question about functionality
Projects
None yet
Development

No branches or pull requests

2 participants