You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe
Custom control type matchers are a useful feature, but would be much more useful if they supported all control types, instead of just "color" and "date".
For example, our component library uses lots of props named *Props (e.g. InputProps), as it is built on material-ui. All of those should use the "object" control type, but the inferred type is the default "JSON string".
Describe the solution you'd like
Something like type Matchers = Record<keyof SupportedControlTypes, Regex>, and supporting code.
Describe alternatives you've considered
This is a convenience feature, as consumers can define the control type for each individual prop, currently.
Are you able to assist to bring the feature to reality?
Is your feature request related to a problem? Please describe
Custom control type matchers are a useful feature, but would be much more useful if they supported all control types, instead of just "color" and "date".
For example, our component library uses lots of props named
*Props
(e.g.InputProps
), as it is built on material-ui. All of those should use the "object" control type, but the inferred type is the default "JSON string".Describe the solution you'd like
Something like
type Matchers = Record<keyof SupportedControlTypes, Regex>
, and supporting code.Describe alternatives you've considered
This is a convenience feature, as consumers can define the control type for each individual prop, currently.
Are you able to assist to bring the feature to reality?
Yep. Happy to submit a PR. Looks like this might be a good starting point, and would consider changes to tests/docs, as well.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: