Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Components: require explicit children prop for all components #31817

Merged
merged 12 commits into from
May 26, 2021
Prev Previous commit
Next Next commit
Add children prop to View
  • Loading branch information
ciampo committed May 26, 2021
commit dcfb4d2180ab384a9145f44f72aead33a9f06dc4
2 changes: 1 addition & 1 deletion packages/components/src/view/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import styled from '@emotion/styled';
* }
* ```
*
* @type {import('../ui/context').PolymorphicComponent<'div', {}>}
* @type {import('../ui/context').PolymorphicComponent<'div', { children?: import('react').ReactNode }>}
*/
// @ts-ignore
const View = styled.div``;
Expand Down