Skip to content

Commit

Permalink
fix(Charts): Create Typings for new Charts
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusNotheis committed Mar 17, 2020
1 parent 5297e76 commit 89fca41
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 13 deletions.
2 changes: 2 additions & 0 deletions packages/charts/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,5 @@
/index.esm.js
/LICENSE
/NOTICE.txt
/indexNew.d.ts
/hooks
28 changes: 28 additions & 0 deletions packages/charts/src/indexNew.ts
Original file line number Diff line number Diff line change
@@ -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
};
3 changes: 2 additions & 1 deletion packages/charts/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"extends": "../../tsconfig.json",
"include": [
"src/index.ts"
"src/index.ts",
"src/indexNew.ts"
]
}
24 changes: 12 additions & 12 deletions scripts/rollup/results.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
}

0 comments on commit 89fca41

Please sign in to comment.