mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
[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:
parent
ae0ac656ad
commit
02fb35d9bd
6
types/chart.js/index.d.ts
vendored
6
types/chart.js/index.d.ts
vendored
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user