diff --git a/src/coord/axisModelCommonMixin.ts b/src/coord/axisModelCommonMixin.ts index 45506188f2..2c3bbc582e 100644 --- a/src/coord/axisModelCommonMixin.ts +++ b/src/coord/axisModelCommonMixin.ts @@ -27,6 +27,7 @@ interface AxisModelCommonMixin extends Pick { getNeedCrossZero(): boolean { diff --git a/src/data/Graph.ts b/src/data/Graph.ts index 4605ff1593..6ebb2caa7b 100644 --- a/src/data/Graph.ts +++ b/src/data/Graph.ts @@ -412,6 +412,7 @@ class GraphEdge { getModel(): Model getModel(path: S): Model + // eslint-disable-next-line @typescript-eslint/no-unused-vars getModel(path?: string): Model { if (this.dataIndex < 0) { return; diff --git a/src/data/Tree.ts b/src/data/Tree.ts index 0389f6a9bf..3b5d4a7573 100644 --- a/src/data/Tree.ts +++ b/src/data/Tree.ts @@ -228,6 +228,7 @@ export class TreeNode { getModel(): Model // @depcrecated // getModel(path: S): Model + // eslint-disable-next-line @typescript-eslint/no-unused-vars getModel(path?: string): Model { if (this.dataIndex < 0) { return; @@ -412,7 +413,7 @@ class Tree { * ] * } */ - static createTree( + static createTree( dataRoot: T, hostModel: HostModel, beforeLink?: (data: SeriesData) => void diff --git a/src/label/labelStyle.ts b/src/label/labelStyle.ts index 606aa948f1..e63a35117e 100644 --- a/src/label/labelStyle.ts +++ b/src/label/labelStyle.ts @@ -30,8 +30,7 @@ import { ColorString, ZRStyleProps, AnimationOptionMixin, - InterpolatableValue, - SeriesDataType + InterpolatableValue } from '../util/types'; import GlobalModel from '../model/Global'; import { isFunction, retrieve2, extend, keys, trim } from 'zrender/src/core/util'; @@ -40,7 +39,6 @@ import { deprecateReplaceLog } from '../util/log'; import { makeInner, interpolateRawValues } from '../util/model'; import SeriesData from '../data/SeriesData'; import { initProps, updateProps } from '../util/graphic'; -import { getECData } from '../util/innerStore'; type TextCommonParams = { /** diff --git a/src/layout/points.ts b/src/layout/points.ts index bde24f1535..0b060403c0 100644 --- a/src/layout/points.ts +++ b/src/layout/points.ts @@ -17,7 +17,6 @@ * under the License. */ -/* global Float32Array */ import {map} from 'zrender/src/core/util'; import createRenderPlanner from '../chart/helper/createRenderPlanner'; diff --git a/src/model/Model.ts b/src/model/Model.ts index 559c3e96d7..160c8255f1 100644 --- a/src/model/Model.ts +++ b/src/model/Model.ts @@ -36,12 +36,13 @@ import { mixin, clone, merge } from 'zrender/src/core/util'; // Since model.option can be not only `Dictionary` but also primary types, // we do this conditional type to avoid getting type 'never'; -type Key = Opt extends Dictionary - ? keyof Opt : string; -type Value = Opt extends Dictionary - ? (R extends keyof Opt ? Opt[R] : ModelOption) - : ModelOption; +// type Key = Opt extends Dictionary +// ? keyof Opt : string; +// type Value = Opt extends Dictionary +// ? (R extends keyof Opt ? Opt[R] : ModelOption) +// : ModelOption; +// eslint-disable-next-line @typescript-eslint/no-unused-vars interface Model extends LineStyleMixin, ItemStyleMixin, TextStyleMixin, AreaStyleMixin {} class Model { // TODO: TYPE use unkown insteadof any? diff --git a/src/util/conditionalExpression.ts b/src/util/conditionalExpression.ts index 2d9b752989..5107ac567a 100644 --- a/src/util/conditionalExpression.ts +++ b/src/util/conditionalExpression.ts @@ -167,7 +167,7 @@ interface RelationalExpressionOption extends parser?: RawValueParserType; } -type RelationalExpressionOpEvaluate = (tarVal: unknown, condVal: unknown) => boolean; +// type RelationalExpressionOpEvaluate = (tarVal: unknown, condVal: unknown) => boolean; class RegExpEvaluator implements FilterComparator { diff --git a/src/visual/style.ts b/src/visual/style.ts index 8683a21484..e791189423 100644 --- a/src/visual/style.ts +++ b/src/visual/style.ts @@ -18,7 +18,7 @@ */ import { isFunction, extend, createHashMap } from 'zrender/src/core/util'; -import { StageHandler, CallbackDataParams, ZRColor, Dictionary, InnerDecalObject, SeriesOption } +import { StageHandler, CallbackDataParams, ZRColor, Dictionary, InnerDecalObject } from '../util/types'; import makeStyleMapper from '../model/mixin/makeStyleMapper'; import { ITEM_STYLE_KEY_MAP } from '../model/mixin/itemStyle';