fix(docs-infra): TS generic parameter defaults are not preserved in API docs
See original GitHub issueTypeScript generic parameter defaults from source code do not show up in API docs.
For example, class ElementRef<T = any> { ... }
(from the source code) appears as class ElementRef<T> { ... }
in the API docs.
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Generic Parameter Defaults in TypeScript - Marius Schulz
TypeScript 2.3 implemented generic parameter defaults which allow you to specify default types for type parameters in a generic type.
Read more >Default parameters with generics in TypeScript - Stack Overflow
You can basically call that with a parameter, in which case it is generic and A is inferred, or you can call it...
Read more >How To Use Generics in TypeScript - DigitalOcean
You turned your function into a generic function that accepts the generic type parameter T , which is the type of the first...
Read more >@mui/system | Yarn - Package Manager
Important: This documentation covers modern versions of Yarn. For 1.x docs, see classic.yarnpkg.com. Yarn.
Read more >Documentation - Generics - TypeScript
Types which take parameters. ... of software engineering is building components that not only have well-defined and consistent APIs, but are also reusable....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@petebacondarwin @gkalpak this issue can be closed I think
Should be fixed by @sonukapoor’s PR: https://github.com/angular/dgeni-packages/pull/290 Merged and released as 0.28.4