-
Notifications
You must be signed in to change notification settings - Fork 42
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
@template
tag does not generate generic parameters
#134
Comments
There is an example in the tests that successfully generates a class with a generic template: tsd-jsdoc/test/fixtures/namespace_all.js Lines 7 to 15 in d759376
|
Welp, it's right there on the front page 😳
Adding Should I open a second issue about supporting type parameter bounds and default values? Currently, whatever follows |
I'm trying to document generics and while the tags are correctly interpreted by Typescript directly,
tsd-jsdoc
is not applying type parameters in its output.I put together a simple repro and nothing I do there is able to get the output to include type parameters in the declaration.
Once this is worked out, I also wanted to see if there is supposed to be any syntax for specifying a default value for type parameters, as in
MyClass<T extends Function = Function>
. That isn't listed on the Closure documentation about Generics and it sounds like the TS team is still debating, so I could open a separate issue if need be.The text was updated successfully, but these errors were encountered: