Skip to content

Commit

Permalink
Add RegExp array to voronoiBlacklist type
Browse files Browse the repository at this point in the history
typings for ```voronoiBlacklist``` do not currently include regular expressions, which are supported as of [this](#1278) PR. This changes the type so ```voronoiBlacklist``` correctly allows both strings and regular expressions.
  • Loading branch information
brendanmorrell authored and dlcartright committed Mar 5, 2022
1 parent 94314b1 commit 6c99483
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/victory-voronoi-container/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export interface VictoryVoronoiContainerProps extends VictoryContainerProps {
onActivated?: (points: any[], props: VictoryVoronoiContainerProps) => void;
onDeactivated?: (points: any[], props: VictoryVoronoiContainerProps) => void;
radius?: number;
voronoiBlacklist?: string[];
voronoiBlacklist?: (string | RegExp)[];
voronoiDimension?: "x" | "y";
voronoiPadding?: PaddingProps;
}
Expand Down

0 comments on commit 6c99483

Please sign in to comment.