You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by su...@apache.org on 2020/07/17 12:02:10 UTC
[incubator-echarts] branch next updated: ts: fix type follow the
update of zrender.
This is an automated email from the ASF dual-hosted git repository.
sushuang pushed a commit to branch next
in repository https://gitbox.apache.org/repos/asf/incubator-echarts.git
The following commit(s) were added to refs/heads/next by this push:
new 7304d5a ts: fix type follow the update of zrender.
7304d5a is described below
commit 7304d5a9bedfb5e38bff0d553ce73d654189c3e9
Author: 100pah <su...@gmail.com>
AuthorDate: Fri Jul 17 20:01:40 2020 +0800
ts: fix type follow the update of zrender.
---
src/model/Global.ts | 2 +-
src/util/model.ts | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/model/Global.ts b/src/model/Global.ts
index d0cf090..141ba8f 100644
--- a/src/model/Global.ts
+++ b/src/model/Global.ts
@@ -73,7 +73,7 @@ class GlobalModel extends Model<ECUnitOption> {
private _optionManager: OptionManager;
- private _componentsMap: HashMap<ComponentModel[]>;
+ private _componentsMap: HashMap<ComponentModel[], ComponentMainType>;
/**
* Mapping between filtered series list and raw series list.
diff --git a/src/util/model.ts b/src/util/model.ts
index 1589c80..0145ea4 100644
--- a/src/util/model.ts
+++ b/src/util/model.ts
@@ -627,9 +627,9 @@ export function groupData<T, R extends string | number>(
getKey: (item: T) => R // return key
): {
keys: R[],
- buckets: HashMap<T[]> // hasmap key: the key returned by `getKey`.
+ buckets: HashMap<T[], R> // hasmap key: the key returned by `getKey`.
} {
- const buckets = createHashMap<T[]>();
+ const buckets = createHashMap<T[], R>();
const keys: R[] = [];
each(array, function (item) {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@echarts.apache.org
For additional commands, e-mail: commits-help@echarts.apache.org