refactor: change listeners from object to Map

This commit is contained in:
Yue JIN
2025-05-21 12:18:43 +08:00
committed by GU Yiling
parent 0aec2ecbd6
commit 9dd86d0a8d
2 changed files with 23 additions and 35 deletions

View File

@ -26,8 +26,6 @@ export type UpdateOptions = SetOptionOpts;
export type UpdateOptionsInjection = Injection<UpdateOptions>;
export type EChartsType = ReturnType<InitType>;
type ZRenderType = ReturnType<EChartsType["getZr"]>;
export type EventTarget = EChartsType | ZRenderType;
type SetOptionType = EChartsType["setOption"];
export type Option = Parameters<SetOptionType>[0];