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
Until microsoft/TypeScript#21699 is resolved it is not possible to restrict a children prop to a specific type/shape of React component. Use this ticket to track the places where children should be further restricted when it becomes possible.
EuiGlobalToastListItem should only accept EuiToast children
EuiValidatableControl's children must accept ref props and expose a setCustomValidity method
The text was updated successfully, but these errors were encountered:
JasonStoltz
changed the title
[META] TypeScript components that need to restrict their children
[Meta] TypeScript components that need to restrict their children
Jan 23, 2023
Seeing as it's been 4 years, Typescript is showing no movement on resolving this capability, and this is only a nice-to-have, we're closing this issue as not-planned.
Until microsoft/TypeScript#21699 is resolved it is not possible to restrict a
children
prop to a specific type/shape of React component. Use this ticket to track the places wherechildren
should be further restricted when it becomes possible.EuiGlobalToastListItem
should only acceptEuiToast
childrenEuiValidatableControl
's children must accept ref props and expose a setCustomValidity methodThe text was updated successfully, but these errors were encountered: