mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-18 07:50:23 +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:
Vendored
+496
-496
File diff suppressed because it is too large
Load Diff
+1
-1
@@ -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
@@ -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"
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user