Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upfix(docs-infra): TS generic parameter defaults are not preserved in API docs #37694
Comments
|
This is a bug in the |
|
@gkalpak / @petebacondarwin I will take a look. |
|
To get you started... take a look at this line: https://github.com/angular/dgeni-packages/blob/master/typescript/src/api-doc-types/ClassLikeExportDoc.ts#L33 and then consider this function https://github.com/angular/dgeni-packages/blob/master/typescript/src/services/TsParser/getDeclarationTypeText.ts |
|
Thanks for the pointer @petebacondarwin - that helps |
|
Should be fixed by @sonukapoor's PR: angular/dgeni-packages#290 |
petebacondarwin
added a commit
to petebacondarwin/angular
that referenced
this issue
Jun 27, 2020
This update of dgeni-packages to 0.28.4 fixes the rendering of type initializers for classes and interfaces. Closes angular#37694
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
TypeScript generic parameter defaults from source code do not show up in API docs.
For example,
class ElementRef<T = any> { ... }(from the source code) appears asclass ElementRef<T> { ... }in the API docs.