Skip to content

Commit b807a6e

Browse files
authored
Merge pull request #1751 from FormidableLabs/bug/add-default-events-typing-to-victory-tooltip
Add static defaultEvents to VictoryTooltip type
2 parents 4008b3f + 03cd190 commit b807a6e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

packages/victory-tooltip/src/index.d.ts

+6-2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ import {
88
VictoryThemeDefinition,
99
VictoryStyleObject,
1010
VictoryLabelStyleObject,
11-
PaddingOrCallback
11+
PaddingOrCallback,
12+
EventPropTypeInterface
1213
} from "victory-core";
1314

1415
export interface VictoryTooltipProps extends VictoryLabelableProps {
@@ -80,4 +81,7 @@ export interface FlyoutProps extends VictoryCommonProps {
8081
}
8182

8283
export class Flyout extends React.Component<FlyoutProps, any> {}
83-
export class VictoryTooltip extends React.Component<VictoryTooltipProps, any> {}
84+
85+
export class VictoryTooltip extends React.Component<VictoryTooltipProps, any> {
86+
static defaultEvents: EventPropTypeInterface<string, StringOrNumberOrCallback>[];
87+
}

0 commit comments

Comments
 (0)