question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

fix(docs-infra): TS generic parameter defaults are not preserved in API docs

See original GitHub issue

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 as class ElementRef<T> { ... } in the API docs.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
ajitsinghkalercommented, Jul 3, 2020

@petebacondarwin @gkalpak this issue can be closed I think

1reaction
petebacondarwincommented, Jun 27, 2020

Should be fixed by @sonukapoor’s PR: https://github.com/angular/dgeni-packages/pull/290 Merged and released as 0.28.4

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found