From 157063409b24d9fa44c78ee66ce9e35236e3f76a Mon Sep 17 00:00:00 2001 From: Ryan Vazquez Date: Mon, 26 Oct 2020 17:58:42 -0400 Subject: [PATCH] use wildcard form for re-exports --- plugins/cost-insights/src/components/BarChart/index.ts | 1 + plugins/cost-insights/src/components/CostGrowth/index.ts | 1 + .../cost-insights/src/components/LegendItem/LegendItem.tsx | 2 +- plugins/cost-insights/src/components/index.ts | 6 +++--- 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/cost-insights/src/components/BarChart/index.ts b/plugins/cost-insights/src/components/BarChart/index.ts index b2c6390388..4525bd24f3 100644 --- a/plugins/cost-insights/src/components/BarChart/index.ts +++ b/plugins/cost-insights/src/components/BarChart/index.ts @@ -15,3 +15,4 @@ */ export { BarChart } from './BarChart'; +export type { BarChartProps } from './BarChart'; diff --git a/plugins/cost-insights/src/components/CostGrowth/index.ts b/plugins/cost-insights/src/components/CostGrowth/index.ts index d4b1396586..da17ae8709 100644 --- a/plugins/cost-insights/src/components/CostGrowth/index.ts +++ b/plugins/cost-insights/src/components/CostGrowth/index.ts @@ -15,3 +15,4 @@ */ export { CostGrowth } from './CostGrowth'; +export type { CostGrowthProps } from './CostGrowth'; diff --git a/plugins/cost-insights/src/components/LegendItem/LegendItem.tsx b/plugins/cost-insights/src/components/LegendItem/LegendItem.tsx index cabc5f9c59..9424c50bf7 100644 --- a/plugins/cost-insights/src/components/LegendItem/LegendItem.tsx +++ b/plugins/cost-insights/src/components/LegendItem/LegendItem.tsx @@ -20,7 +20,7 @@ import LensIcon from '@material-ui/icons/Lens'; import HelpOutlineOutlinedIcon from '@material-ui/icons/HelpOutlineOutlined'; import { useCostGrowthLegendStyles } from '../../utils/styles'; -type LegendItemProps = { +export type LegendItemProps = { title: string; tooltipText?: string; markerColor?: string; diff --git a/plugins/cost-insights/src/components/index.ts b/plugins/cost-insights/src/components/index.ts index d28c256a0b..5b918144d9 100644 --- a/plugins/cost-insights/src/components/index.ts +++ b/plugins/cost-insights/src/components/index.ts @@ -14,7 +14,7 @@ * limitations under the License. */ -export { BarChart } from './BarChart'; -export { CostGrowth } from './CostGrowth'; -export { LegendItem } from './LegendItem'; +export * from './BarChart'; +export * from './CostGrowth'; +export * from './LegendItem'; export * from './Tooltip';