Api docs: unspecified default generic types are included and expanded #99586
Labels
APIDocs
bug
Fixes for quality problems that affect the customer experience
Team:Operations
Team label for Operations Team
You can see this happening in the cases plugin:
Code:
Type looks pretty simple here, but is rendered like this in the docs:
Which looks quite bad. There are two issues. One is that it's including the default parameters from
ReactElement
.The second issue is that it's expanding
JSXElementConstructor<any>
, which makes the result look extra ugly.I filed microsoft/TypeScript#43988 (comment) but it doesn't look like I will be able to work around this, aside from doing some very specific hacks on commonly used elements.
The text was updated successfully, but these errors were encountered: