[chartjs] Add support for 'enabled' in ticks major configuration (#37503)

It's documented in https://www.chartjs.org/docs/latest/axes/styling.html but
missing in typescript definition, forbidding usage of major ticks feature.
This commit is contained in:
Sylvain Thénault 2019-08-14 00:48:58 +02:00 committed by Pranav Senthilnathan
parent ae0ac656ad
commit 02fb35d9bd

View File

@ -452,7 +452,7 @@ declare namespace Chart {
interface TickOptions extends NestedTickOptions {
minor?: NestedTickOptions | false;
major?: NestedTickOptions | false;
major?: MajorTickOptions | false;
}
interface NestedTickOptions {
@ -485,6 +485,10 @@ declare namespace Chart {
suggestedMin?: number;
}
interface MajorTickOptions extends NestedTickOptions {
enabled?: boolean;
}
interface AngleLineOptions {
display?: boolean;
color?: ChartColor;