Is there a more recent set of types available for ChartJS?
I found a package called @types/chartjs
, but it seems to be deprecated.
Having autocomplete when defining options would be really helpful.
Currently, using pure JS:
const config = {
type: 'line',
data: {},
options: {},
plugins: []
}
It would be great if we could write it like this:
const config: ChartJSOptions = {
type: 'line',
data: {},
options: {},
plugins: []
}