Skip to content

Commit 2311361

Browse files
yooozyoooz
andauthored
fix: add type comment on Chart Objects (#825) (#860)
Co-authored-by: yoooz <[email protected]>
1 parent 12ef52a commit 2311361

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

legacy/src/Charts.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,48 +223,56 @@ export function generateChart(chartId, chartType, chartController) {
223223
}
224224
}
225225

226+
/** @type Object */
226227
export const Bar = /* #__PURE__ */ generateChart(
227228
'bar-chart',
228229
'bar',
229230
BarController
230231
)
231232

233+
/** @type Object */
232234
export const Doughnut = /* #__PURE__ */ generateChart(
233235
'doughnut-chart',
234236
'doughnut',
235237
DoughnutController
236238
)
237239

240+
/** @type Object */
238241
export const Line = /* #__PURE__ */ generateChart(
239242
'line-chart',
240243
'line',
241244
LineController
242245
)
243246

247+
/** @type Object */
244248
export const Pie = /* #__PURE__ */ generateChart(
245249
'pie-chart',
246250
'pie',
247251
PieController
248252
)
249253

254+
/** @type Object */
250255
export const PolarArea = /* #__PURE__ */ generateChart(
251256
'polar-chart',
252257
'polarArea',
253258
PolarAreaController
254259
)
255260

261+
/** @type Object */
256262
export const Radar = /* #__PURE__ */ generateChart(
257263
'radar-chart',
258264
'radar',
259265
RadarController
260266
)
261267

268+
/** @type Object */
262269
export const Bubble = /* #__PURE__ */ generateChart(
263270
'bubble-chart',
264271
'bubble',
265272
BubbleController
266273
)
267274

275+
/** @type Object */
268276
export const Scatter = /* #__PURE__ */ generateChart(
269277
'scatter-chart',
270278
'scatter',

0 commit comments

Comments
 (0)