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

children prop type for latest react #25

Closed
iofjuupasli opened this issue Aug 3, 2022 · 1 comment · Fixed by #26
Closed

children prop type for latest react #25

iofjuupasli opened this issue Aug 3, 2022 · 1 comment · Fixed by #26

Comments

@iofjuupasli
Copy link
Contributor

With React v18.2.0 I have error in TypeScript:

TS2322: Type '{ children: (false | Element | Element[] | (Element | null)[] | undefined)[]; targetBlockWidth: number; center: false; }' is not assignable to type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<XMasonryProps, {}, any>> & Readonly<XMasonryProps>'.   Property 'children' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<XMasonryProps, {}, any>> & Readonly<XMasonryProps>'.

As I understand it means that in https://github.com/ZitRos/react-xmasonry/blob/master/types.d.ts it should have children property.

@nikitaeverywhere
Copy link
Owner

nikitaeverywhere commented Aug 3, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants