Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add type comment on Chart Objects (#825) #860

Merged
merged 1 commit into from May 25, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 8 additions & 0 deletions legacy/src/Charts.js
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