Skip to content
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

ElementOptionsByType are not scriptable in types #9007

Closed
MaximBalaganskiy opened this issue Apr 29, 2021 · 0 comments · Fixed by #9012
Closed

ElementOptionsByType are not scriptable in types #9007

MaximBalaganskiy opened this issue Apr 29, 2021 · 0 comments · Fixed by #9012
Assignees
Labels
type: bug type: types Typescript type changes
Milestone

Comments

@MaximBalaganskiy
Copy link

Expected Behavior

I can assign a function to options.elements.point.pointStyle in Typescript

Current Behavior

Function type is incompatible with the field

Possible Solution

Mark the fields in ElementOptionsByType as scriptable

Steps to Reproduce

image

Environment

  • Chart.js version: 3.1.1
  • Typescript: 4.2.2
@etimberg etimberg added the type: types Typescript type changes label Apr 29, 2021
@etimberg etimberg self-assigned this May 1, 2021
@etimberg etimberg added this to the Version 3.2.1 milestone May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug type: types Typescript type changes
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants