-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
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
Wrong TS type for plugins prop #734
Comments
Any workarounds found other than changing the node module file until this is fixed? ok I used this to solve it temporarily plugins={([plugin] as unknown as PluginOptionsByType<any>)} |
@El-bana I just went with |
@burtek Hi. Can you try [email protected]? Is this issue still there? |
Hi. For return <Scatter data={data} options={options} plugins={[backgroundPlugin]} />; it works if I do
I'm fine with |
@burtek Can you try [email protected] ? |
@dangreen So far looks and works good to me :) |
<Chart |
react-chartjs-2/src/types.ts
Line 14 in 7070c25
Shouldn't
plugins
type beChart.Plugin[]
rather thanPluginServiceRegistrationOptions
? See TS types of chart.js:https://github.com/chartjs/Chart.js/blob/8e68481ec4e29599660332f58967f439fb2ef17c/types/index.esm.d.ts#L3490-L3499
The text was updated successfully, but these errors were encountered: