The issue has been closed
I have a chart and it whould dynamic change type:
let mark:????
if (type=='line')
mark=chart.line()
else if (type=='interval')
mark=chart.interval()
how to define the mark type in typescript?

That's a good issue. The base type of mark should be exported. @pepper-nice
And it may change the name from MarkBase
to Mark
.
posted by pearmini about 2 years ago
tks, it will be useful to encapsulate chart as vue component
posted by coader about 2 years ago