Open carbonrobot opened 7 months ago
The types for this function have been rewritten here #2799
In fact I managed to get this working in the end with this (note, breaks without the any
):
// allows two top level containers: zoom and voronoi
const VictoryZoomVoronoiContainer:any = createContainer(
'zoom',
'voronoi',
);
Feels like I have not understood the types magic that is going on here, but this works for me for the moment, unless there is some better way I should do this.
to get the same type as before the change that broke this you can temporarily use
const VictoryZoomVoronoiContainer = createContainer('zoom', 'voronoi') as React.ComponentType<
VictoryVoronoiContainerProps & VictoryZoomContainerProps
>
I am using victory
36.9.1
and react18.2
in node 20It is all working in production currently on node 16, react 17 using victory
35.4.8
I am trying to create a voronoi zoom container
When I create the container I get a type error:
Apologies in advance if this is my fault and is a question best directed elsewhere.
Originally posted by @eatyourpeas in https://github.com/FormidableLabs/victory/issues/1446#issuecomment-1950179439