Skip to content

Commit 72ba7d6

Browse files
authored
Merge pull request #1755 from FormidableLabs/improvement/export-portal-type
export Portal type
2 parents 81e3681 + bbbe7e5 commit 72ba7d6

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

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

+10
Original file line numberDiff line numberDiff line change
@@ -735,6 +735,16 @@ export namespace TextSize {
735735

736736
// #region Victory Portal
737737

738+
export interface PortalProps {
739+
className?: string;
740+
height: number;
741+
style?: React.CSSProperties;
742+
viewBox?: string;
743+
width: number;
744+
}
745+
746+
export class Portal extends React.Component<PortalProps, any> {}
747+
738748
export interface VictoryPortalProps {
739749
children?: React.ReactElement;
740750
groupComponent?: React.ReactElement;

packages/victory/src/index.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ declare module "victory" {
3737
// VictoryTransition,
3838
VictoryPortal,
3939
VictoryPortalProps,
40-
// Portal,
40+
Portal,
4141
VictoryClipContainer,
4242
VictoryClipContainerProps,
4343
// addEvents,
@@ -211,7 +211,7 @@ declare module "victory" {
211211
VictoryVoronoiProps,
212212
VictoryPortal,
213213
VictoryPortalProps,
214-
// Portal,
214+
Portal,
215215
VictoryContainer,
216216
VictoryContainerProps,
217217
VictoryClipContainer,

0 commit comments

Comments
 (0)