Skip to content

Commit

Permalink
fix: add type comment on Chart Objects (#825) (#860)
Browse files Browse the repository at this point in the history
Co-authored-by: yoooz <[email protected]>
  • Loading branch information
yoooz and yoooz authored May 25, 2022
1 parent 12ef52a commit 2311361
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions legacy/src/Charts.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 2311361

Please sign in to comment.