From 231136131d3cce81f362ccf1e58a0573308a5503 Mon Sep 17 00:00:00 2001 From: takahiro ogiwara <54015757+yoooz@users.noreply.github.com> Date: Wed, 25 May 2022 22:32:06 +0900 Subject: [PATCH] fix: add type comment on Chart Objects (#825) (#860) Co-authored-by: yoooz --- legacy/src/Charts.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/legacy/src/Charts.js b/legacy/src/Charts.js index 7a858811..0de46143 100644 --- a/legacy/src/Charts.js +++ b/legacy/src/Charts.js @@ -223,48 +223,56 @@ export function generateChart(chartId, chartType, chartController) { } } +/** @type Object */ export const Bar = /* #__PURE__ */ generateChart( 'bar-chart', 'bar', BarController ) +/** @type Object */ export const Doughnut = /* #__PURE__ */ generateChart( 'doughnut-chart', 'doughnut', DoughnutController ) +/** @type Object */ export const Line = /* #__PURE__ */ generateChart( 'line-chart', 'line', LineController ) +/** @type Object */ export const Pie = /* #__PURE__ */ generateChart( 'pie-chart', 'pie', PieController ) +/** @type Object */ export const PolarArea = /* #__PURE__ */ generateChart( 'polar-chart', 'polarArea', PolarAreaController ) +/** @type Object */ export const Radar = /* #__PURE__ */ generateChart( 'radar-chart', 'radar', RadarController ) +/** @type Object */ export const Bubble = /* #__PURE__ */ generateChart( 'bubble-chart', 'bubble', BubbleController ) +/** @type Object */ export const Scatter = /* #__PURE__ */ generateChart( 'scatter-chart', 'scatter',