diff --git a/types/victory/index.d.ts b/types/victory/index.d.ts index f5c67995da..549e3823da 100644 --- a/types/victory/index.d.ts +++ b/types/victory/index.d.ts @@ -2057,7 +2057,7 @@ declare module "victory" { /** * The size prop determines how to scale each data point */ - size?: number | { (data: any): number }; + size?: number | { (data: any): number } | { (data: any, active: boolean): number }; /** * The style prop specifies styles for your VictoryScatter. Any valid inline style properties * will be applied. Height, width, and padding should be specified via the height, diff --git a/types/victory/victory-tests.tsx b/types/victory/victory-tests.tsx index fcd18571e3..eb3b7bda40 100644 --- a/types/victory/victory-tests.tsx +++ b/types/victory/victory-tests.tsx @@ -642,6 +642,32 @@ test = ( /> ); +test = ( + 5} + /> +); + +test = ( + (a ? 5 : 3)} + /> +); + // VictoryPie test test = (