diff --git a/types/victory/index.d.ts b/types/victory/index.d.ts index 6178d52bd3..956477e7ef 100644 --- a/types/victory/index.d.ts +++ b/types/victory/index.d.ts @@ -1261,6 +1261,12 @@ declare module "victory" { export class VictoryAxis extends React.Component {} export interface VictoryBarProps extends VictoryCommonProps, VictoryDatableProps, VictoryMultiLabeableProps { + /** + * The cornerRadius prop specifies a radius to apply to each bar. + * If this prop is given as a single number, the radius will only be applied to the top of each bar. + * When this prop is given as a function, it will be evaluated with the arguments datum, and active. + */ + cornerRadius?: NumberOrCallback; /** * The event prop take an array of event objects. Event objects are composed of * a target, an eventKey, and eventHandlers. Targets may be any valid style namespace diff --git a/types/victory/victory-tests.tsx b/types/victory/victory-tests.tsx index d7ddd7c33b..83be8dd38d 100644 --- a/types/victory/victory-tests.tsx +++ b/types/victory/victory-tests.tsx @@ -255,6 +255,7 @@ test = ( ]} barWidth={20} barRatio={100} + cornerRadius={2} /> );