Skip to content

Commit 761cb73

Browse files
committed
feat: export line chart props type
1 parent b9795d2 commit 761cb73

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

src/components/SkiaComponents.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import { LineChart as LineChartImpl } from "./LineChart";
22
import type { LineChartProps } from "./LineChart";
33

4-
export const LineChart: React.FC<LineChartProps> = LineChartImpl;
4+
const LineChart: React.FC<LineChartProps> = LineChartImpl;
5+
6+
export { LineChart, type LineChartProps };

src/components/SkiaComponents.web.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ const SkiaLoaderComponent: React.FC<SkiaLoaderComponentProps> = ({ Component })
4242
return <Component />;
4343
};
4444

45-
export const LineChart: React.FC<LineChartProps> = (props) => {
45+
const LineChart: React.FC<LineChartProps> = (props) => {
4646
return <SkiaLoaderComponent Component={() => <LineChartImpl {...props} />} />;
4747
};
48+
49+
export { LineChart, type LineChartProps };

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
export { LineChart } from "./components/SkiaComponents";
1+
export { LineChart, type LineChartProps } from "./components/SkiaComponents";
22
export { type AxisLabelComponentProps } from "./components/LineChart/AxisLabel";

0 commit comments

Comments
 (0)