[docs-infra] Prevent to set undefined
as a default value
#41139
Labels
enhancement
This is not a bug, nor a new feature
scope: docs-infra
Specific to the docs-infra product
It looks funny on the API page:
As far as I know, we only do this if it's
null
.undefined
is the default "prop default value". In #41114 I try to improve its display.If this change makes sense, then I think we should throw an error in docs-infra when the default is undefined, saying to remove it as redundant, to prevent future regressions.
Originally posted by @oliviertassinari in mui/mui-x#11996 (comment)
Search keywords:
The text was updated successfully, but these errors were encountered: