mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Clean up echarts option interfaces
Details: - remove redundant field from SeriesBar - move Line interface one level up to be able use from other places - make names of common interfaces more obvious
This commit is contained in:
parent
1a9ee43d68
commit
00fd32eae1
992
types/echarts/index.d.ts
vendored
992
types/echarts/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
2
types/echarts/options/axis-pointer.d.ts
vendored
2
types/echarts/options/axis-pointer.d.ts
vendored
@ -3,7 +3,7 @@ declare namespace echarts {
|
||||
/**
|
||||
* @todo describe
|
||||
*/
|
||||
interface AxisPointer extends CommonProps.Axis.Pointer {
|
||||
interface AxisPointer extends BasicComponents.CartesianAxis.Pointer {
|
||||
/**
|
||||
* Component ID, not specified by default.
|
||||
* If specified, it can be used to refer the component
|
||||
|
||||
2
types/echarts/options/series/bar.d.ts
vendored
2
types/echarts/options/series/bar.d.ts
vendored
@ -12,8 +12,6 @@ declare namespace echarts {
|
||||
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-bar
|
||||
*/
|
||||
interface SeriesBar {
|
||||
[k: string]: any;
|
||||
|
||||
/**
|
||||
* @default
|
||||
* "bar"
|
||||
|
||||
4
types/echarts/options/x-axis.d.ts
vendored
4
types/echarts/options/x-axis.d.ts
vendored
@ -9,7 +9,7 @@ declare namespace echarts {
|
||||
*
|
||||
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis
|
||||
*/
|
||||
interface XAxis extends CommonProps.Axis {
|
||||
interface XAxis extends BasicComponents.CartesianAxis {
|
||||
/**
|
||||
* The first x axis in grid defaults to be on the bottom of the grid,
|
||||
* and the second x axis is on the other side against the first x axis.
|
||||
@ -33,7 +33,7 @@ declare namespace echarts {
|
||||
* @default 'value'
|
||||
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.type
|
||||
*/
|
||||
type?: CommonProps.Axis.Type;
|
||||
type?: BasicComponents.CartesianAxis.Type;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
4
types/echarts/options/y-axis.d.ts
vendored
4
types/echarts/options/y-axis.d.ts
vendored
@ -8,7 +8,7 @@ declare namespace echarts {
|
||||
*
|
||||
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis
|
||||
*/
|
||||
interface YAxis extends CommonProps.Axis {
|
||||
interface YAxis extends BasicComponents.CartesianAxis {
|
||||
/**
|
||||
* The first y axis in grid defaults to be the left (`'left'`)
|
||||
* of the grid, and the second y axis is on the other side
|
||||
@ -31,7 +31,7 @@ declare namespace echarts {
|
||||
* @default 'value'
|
||||
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis.type
|
||||
*/
|
||||
type?: CommonProps.Axis.Type;
|
||||
type?: BasicComponents.CartesianAxis.Type;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user