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

Make defaults type safe #1836

Merged
merged 1 commit into from
Feb 15, 2024
Merged

Make defaults type safe #1836

merged 1 commit into from
Feb 15, 2024

Conversation

Cselt
Copy link
Contributor

@Cselt Cselt commented Feb 15, 2024

AnyObject is not a type safe solution. Instead of that use Chart.js util type DeepPartial. This way you can provide partial default objects.

With this change IDE can help you when you want to define defults:

image

AnyObject is not a type safe solution. Instead of that use Chart.js util type DeepPartial. This way you can provide partial default objects.
@santam85 santam85 merged commit b13c003 into valor-software:master Feb 15, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants