From 89fca41ad4ac286cbd4324c533719bf370149225 Mon Sep 17 00:00:00 2001 From: MarcusNotheis Date: Tue, 17 Mar 2020 13:33:48 +0100 Subject: [PATCH] fix(Charts): Create Typings for new Charts --- packages/charts/.gitignore | 2 ++ packages/charts/src/indexNew.ts | 28 ++++++++++++++++++++++++++++ packages/charts/tsconfig.json | 3 ++- scripts/rollup/results.json | 24 ++++++++++++------------ 4 files changed, 44 insertions(+), 13 deletions(-) create mode 100644 packages/charts/src/indexNew.ts diff --git a/packages/charts/.gitignore b/packages/charts/.gitignore index d0fea212014..ce5869b0725 100644 --- a/packages/charts/.gitignore +++ b/packages/charts/.gitignore @@ -10,3 +10,5 @@ /index.esm.js /LICENSE /NOTICE.txt +/indexNew.d.ts +/hooks diff --git a/packages/charts/src/indexNew.ts b/packages/charts/src/indexNew.ts new file mode 100644 index 00000000000..100615c8a8d --- /dev/null +++ b/packages/charts/src/indexNew.ts @@ -0,0 +1,28 @@ +// Library Export +import { BarChart } from './lib/next/BarChart'; +import { BarChartPlaceholder } from './lib/BarChartPlaceholder'; +import { ColumnChart } from './lib/next/ColumnChart'; +import { ColumnChartPlaceholder } from './lib/ColumnChartPlaceholder'; +import { DonutChart } from './lib/next/DonutChart'; +import { LineChart } from './lib/next/LineChart'; +import { LineChartPlaceholder } from './lib/LineChartPlaceholder'; +import { MicroBarChart } from './lib/next/MicroBarChart'; +import { PieChart } from './lib/next/PieChart'; +import { PieChartPlaceholder } from './lib/PieChartPlaceholder'; +import { RadarChart } from './lib/next/RadarChart'; +import { RadialChart } from './lib/next/RadialChart'; + +export { + ColumnChart, + DonutChart, + BarChart, + LineChart, + PieChart, + RadarChart, + RadialChart, + MicroBarChart, + BarChartPlaceholder, + ColumnChartPlaceholder, + LineChartPlaceholder, + PieChartPlaceholder +}; diff --git a/packages/charts/tsconfig.json b/packages/charts/tsconfig.json index 4aa6b541dc1..76806287eef 100644 --- a/packages/charts/tsconfig.json +++ b/packages/charts/tsconfig.json @@ -1,6 +1,7 @@ { "extends": "../../tsconfig.json", "include": [ - "src/index.ts" + "src/index.ts", + "src/indexNew.ts" ] } diff --git a/scripts/rollup/results.json b/scripts/rollup/results.json index fdb856fb403..0187d3328a6 100644 --- a/scripts/rollup/results.json +++ b/scripts/rollup/results.json @@ -4,43 +4,43 @@ "filename": "charts.development.js", "bundleType": "NODE_DEV", "packageName": "charts", - "size": 19134, - "gzip": 5323 + "size": 19312, + "gzip": 5337 }, { "filename": "charts.production.min.js", "bundleType": "NODE_PROD", "packageName": "charts", - "size": 19134, - "gzip": 5323 + "size": 19312, + "gzip": 5337 }, { "filename": "base.development.js", "bundleType": "NODE_DEV", "packageName": "base", - "size": 60955, - "gzip": 13241 + "size": 81287, + "gzip": 15323 }, { "filename": "base.production.min.js", "bundleType": "NODE_PROD", "packageName": "base", - "size": 60955, - "gzip": 13241 + "size": 81287, + "gzip": 15323 }, { "filename": "main.development.js", "bundleType": "NODE_DEV", "packageName": "main", - "size": 143074, - "gzip": 37672 + "size": 147561, + "gzip": 37888 }, { "filename": "main.production.min.js", "bundleType": "NODE_PROD", "packageName": "main", - "size": 143074, - "gzip": 37672 + "size": 147561, + "gzip": 37888 } ] } \ No newline at end of file