Skip to content

Commit

Permalink
Fix compile errors when using multiple plugins (#877)
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastiaanSafeguard committed May 9, 2023
1 parent b01f3b2 commit f447a34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { AnnotationPluginOptions, BoxAnnotationOptions, EllipseAnnotationOptions

declare module 'chart.js' {
// eslint-disable-next-line @typescript-eslint/no-unused-vars
interface PluginOptionsByType<TType extends ChartType> {
interface PluginOptionsByType<TType extends ChartType = ChartType> {
annotation: AnnotationPluginOptions;
}

Expand Down

0 comments on commit f447a34

Please sign in to comment.