Skip to content

Commit

Permalink
Explicitly define funcs
Browse files Browse the repository at this point in the history
  • Loading branch information
kale-stew committed Apr 29, 2020
1 parent 4e755d4 commit cdc0315
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions packages/victory-selection-container/src/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,22 @@
import * as React from "react";
import { VictoryContainerProps } from "victory-core";

interface PointsInterface {
childName?: string | string[];
eventKey?: string | number;
data?: any;
}

interface VictorySelectionContainerProps extends VictoryContainerProps {
activateSelectedData?: boolean;
allowSelection?: boolean;
disable?: boolean;
onSelection?: Function;
onSelectionCleared?: Function;
onSelection?: (
points: PointsInterface[],
bounds: { x: number | Date; y: number | Date }[],
props: VictorySelectionContainerProps
) => void;
onSelectionCleared?: (props: VictorySelectionContainerProps) => void;
selectionBlacklist?: string[];
selectionComponent?: React.ReactElement;
selectionDimension?: "x" | "y";
Expand Down

0 comments on commit cdc0315

Please sign in to comment.