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
{{ message }}
Repository navigation
ReactChildren causing issues in react-virtualized for TS 2.3.2 #16415
TypeScript 2.3.2 adds more strict type checks around ReactChildren. Components with a declared children property of type ReactChildren is now failing against Element arrays. The react-virtualized package has a Table component that explicitly types the children property as ReactChildren. This causes TypeScript compiler errors with a Column element array. Removing the children property fixes the issue.
No problem, thanks @kaoDev. This is definitely new in TypeScript, as I had similar issues with my components. I think the children type should be Column for Table (according to that link above). Although, it may be easier to just remove the children property and leave it as the default.
Hi thread, we're moving DefinitelyTyped to use GitHub Discussions for conversations the @types modules in DefinitelyTyped.
To help with the transition, we're closing all issues which haven't had activity in the last 6 months, which includes this issue. If you think closing this issue is a mistake, please pop into the TypeScript Community Discord and mention the issue in the definitely-typed channel.
Activity
kaoDev commentedon May 9, 2017
I will have a look into this, but could take a few days till I have time.
The issue should be connected to microsoft/TypeScript#13618
joewood commentedon May 9, 2017
No problem, thanks @kaoDev. This is definitely new in TypeScript, as I had similar issues with my components. I think the
childrentype should beColumnforTable(according to that link above). Although, it may be easier to just remove thechildrenproperty and leave it as the default.kaoDev commentedon May 14, 2017
PR is submitted, together with an update to version 9.7 #16515
orta commentedon Jun 7, 2021
Hi thread, we're moving DefinitelyTyped to use GitHub Discussions for conversations the
@typesmodules in DefinitelyTyped.To help with the transition, we're closing all issues which haven't had activity in the last 6 months, which includes this issue. If you think closing this issue is a mistake, please pop into the TypeScript Community Discord and mention the issue in the
definitely-typedchannel.