[Meta] TypeScript components that need to restrict their children #1890
Labels
meta
Big idea that needs refinement, grouping like tasks, no clear DoD or not a discrete piece of work
typescript
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: