feat: support .once modifier

This commit is contained in:
Justineo
2022-06-14 12:08:33 +08:00
committed by GU Yiling
parent 57cd2e6a16
commit eaceae607d
2 changed files with 38 additions and 6 deletions

View File

@ -9,6 +9,8 @@ export type InitOptions = NonNullable<InitParameters[2]>;
export type InitOptionsInjection = InitOptions | null | Ref<InitOptions | null>;
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];