Skip to content

Commit

Permalink
fix(react-d3-plugin): fix missing type exports
Browse files Browse the repository at this point in the history
  • Loading branch information
dackmin committed Jan 25, 2024
1 parent 4f28059 commit cf4b27d
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 10 deletions.
2 changes: 1 addition & 1 deletion packages/react-d3-plugin/lib/Axis/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export declare type AxisRef = {
gridRef: MutableRefObject<any>;
};

declare interface AxisProps extends ComponentPropsWithRef<any> {
export declare interface AxisProps extends ComponentPropsWithRef<any> {
children?: ReactNode | JSX.Element;
className?: string;
axis: AxisObject;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-d3-plugin/lib/Bar/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export declare type BarRef = {
tooltipRef: MutableRefObject<any>;
};

declare interface BarProps extends ComponentPropsWithRef<any> {
export declare interface BarProps extends ComponentPropsWithRef<any> {
children?: ReactNode | JSX.Element;
className?: string;
ref?: MutableRefObject<BarRef | undefined>;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-d3-plugin/lib/Chart/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export declare type ChartRef = {
axis: Array<AxisObject>;
};

declare interface ChartProps extends ComponentPropsWithRef<any> {
export declare interface ChartProps extends ComponentPropsWithRef<any> {
children?: ReactNode | JSX.Element;
className?: string;
axis: Array<AxisObject>;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-d3-plugin/lib/Curve/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export declare type CurveRef = {
areaRef: MutableRefObject<any>;
};

declare interface CurveProps extends ComponentPropsWithRef<any> {
export declare interface CurveProps extends ComponentPropsWithRef<any> {
children?: ReactNode | JSX.Element;
className?: string;
ref?: MutableRefObject<CurveRef | undefined>;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-d3-plugin/lib/Marker/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export declare type MarkerRef = {
y: number;
};

declare interface MarkerProps extends ComponentPropsWithRef<any> {
export declare interface MarkerProps extends ComponentPropsWithRef<any> {
children?: ReactNode | JSX.Element;
className?: string;
ref?: MutableRefObject<MarkerRef | undefined>;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-d3-plugin/lib/hooks.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { AxisObject } from './Axis';

declare interface ChartContext {
export declare interface ChartContext {
axis: Array<AxisObject>;
width: number;
height: number;
Expand Down
9 changes: 5 additions & 4 deletions packages/react-d3-plugin/lib/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
export { default as Axis, AxisRef } from './Axis';
export { default as Chart, ChartRef } from './Chart';
export { default as Curve, CurveRef } from './Curve';
export { default as Marker, MarkerRef } from './Marker';
export { default as Axis, AxisRef, AxisProps, AxisObject } from './Axis';
export { default as Chart, ChartRef, ChartProps } from './Chart';
export { default as Curve, CurveRef, CurveProps } from './Curve';
export { default as Marker, MarkerRef, MarkerProps } from './Marker';

export {
useChart,
ChartContext,
} from './hooks';

0 comments on commit cf4b27d

Please sign in to comment.