Closed kryshac closed 4 years ago
Faced same issue, should be fixed by #8048
Here's how I declared the options in the plugin (needs that PR merged):
declare module 'chart.js' {
interface PluginOptions {
annotation: AnnotationPluginOptions;
}
}
starting with version v3.0.0-beta.10 needs to change in this:
PluginOptions
-> PluginOptionsByType
declare module 'chart.js' {
interface PluginOptionsByType {
annotation: AnnotationPluginOptions;
}
}
I created a plugin for version 3, but I have problems with the types of options for the plugin
Error:
index.d.ts(1516, 3): The expected type comes from property 'options' which is declared here on type 'ChartConfiguration<"line", number[], string>'