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

Include grace in LinearScaleOptions type definition #8847

Merged

Conversation

MosesMendoza
Copy link
Contributor

This PR adds the grace option, to the LinearScaleOptions type definition as documented here, https://www.chartjs.org/docs/latest/axes/cartesian/linear.html#grace. Without this commit the TS compiler does not allow the option. I'm not sure if this is the right way to go about it, but you know, the classic "fixed it for me."

I'm not very familiar with type generation / testing types, so if there's more to do here I'm happy to do it.

This commit adds the `grace` option, to the LinearScaleOptions type definition
as documented here,
https://www.chartjs.org/docs/latest/axes/cartesian/linear.html#grace. Without
this commit the TS compiler does not allow the option.

Signed-off-by: Moses Mendoza <mendoza.moses@gmail.com>
@etimberg etimberg added the type: types Typescript type changes label Apr 7, 2021
@etimberg etimberg added this to the Version 3.1 milestone Apr 7, 2021
@kurkle kurkle merged commit efc1902 into chartjs:master Apr 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: types Typescript type changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants