We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The following code is in the src/types/index.d.ts file:
export interface . { drawTime: 'beforeDatasetDraw' | 'beforeDatasetsDraw'; propagate: boolean; }
And it should be like this:
export interface . { drawTime: 'beforeDatasetDraw' | 'beforeDatasetsDraw' | 'beforeDraw'; propagate: boolean; }
Because there is a 'beforeDraw' option created but it is not being exported within the option.plugins.filler interface
Typescript return this error: Type '"beforeDraw"' cannot be assigned to type '"beforeDatasetDraw" | "beforeDatasetsDraw"'.ts(2322)
Return error: Type '"beforeDraw"' cannot be assigned to type '"beforeDatasetDraw" | "beforeDatasetsDraw"'.ts(2322)
https://codepen.io/leelenaleee/pen/WNyJXEe
No response
Just add the "beforeDraw" option in the interface export.
v4.3.0
The text was updated successfully, but these errors were encountered:
beforeDraw
Successfully merging a pull request may close this issue.
Expected behavior
The following code is in the src/types/index.d.ts file:
And it should be like this:
Because there is a 'beforeDraw' option created but it is not being exported within the option.plugins.filler interface
Typescript return this error: Type '"beforeDraw"' cannot be assigned to type '"beforeDatasetDraw" | "beforeDatasetsDraw"'.ts(2322)
Current behavior
Return error: Type '"beforeDraw"' cannot be assigned to type '"beforeDatasetDraw" | "beforeDatasetsDraw"'.ts(2322)
Reproducible sample
https://codepen.io/leelenaleee/pen/WNyJXEe
Optional extra steps/info to reproduce
No response
Possible solution
Just add the "beforeDraw" option in the interface export.
Context
No response
chart.js version
v4.3.0
Browser name and version
No response
Link to your project
No response
The text was updated successfully, but these errors were encountered: