This is an automated email from the ASF dual-hosted git repository.
shenyi pushed a commit to branch improve-type
in repository https://gitbox.apache.org/repos/asf/echarts.git
The following commit(s) were added to refs/heads/improve-type by this push:
new 8e5641b fix(type): more permissive type
8e5641b is described below
commit 8e5641b70a7c00634baafad6917a0917c661c6a8
Author: pissang <[email protected]>
AuthorDate: Thu Jul 1 12:14:13 2021 +0800
fix(type): more permissive type
---
src/chart/custom/CustomSeries.ts | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/chart/custom/CustomSeries.ts b/src/chart/custom/CustomSeries.ts
index 0984774..d107ad2 100644
--- a/src/chart/custom/CustomSeries.ts
+++ b/src/chart/custom/CustomSeries.ts
@@ -131,8 +131,8 @@ export interface CustomBaseDuringAPI {
getExtra(key: string): unknown
}
export interface CustomDuringAPI<
- StyleOpt extends object = object,
- ShapeOpt extends object = object
+ StyleOpt extends any = any,
+ ShapeOpt extends any = any
> extends CustomBaseDuringAPI {
setShape<T extends keyof ShapeOpt>(key: T, val: ShapeOpt[T]): this;
getShape<T extends keyof ShapeOpt>(key: T): ShapeOpt[T];
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]