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
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>'.
Hi! Thanks for your report.
Feel free to contribute — I’ll review any PRs made. Thanks!
On Wed, 3 Aug 2022 at 17:16, Valery ***@***.***> wrote:
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.
—
Reply to this email directly, view it on GitHub
<#25>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABGCCSH24RJQMDZJTKSLRBDVXJBGJANCNFSM55OIT25A>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
With React v18.2.0 I have error in TypeScript:
As I understand it means that in https://github.com/ZitRos/react-xmasonry/blob/master/types.d.ts it should have
children
property.The text was updated successfully, but these errors were encountered: