fix: fix type for autoresize, closes #800

This commit is contained in:
Justineo
2024-08-04 07:38:57 +08:00
parent b366b31afb
commit beec26367f
4 changed files with 15 additions and 11 deletions

View File

@ -23,6 +23,13 @@ export type EventTarget = EChartsType | ZRenderType;
type SetOptionType = EChartsType["setOption"];
export type Option = Parameters<SetOptionType>[0];
export type AutoResize =
| boolean
| {
throttle?: number;
onResize?: () => void;
};
export type LoadingOptions = {
text?: string;
textColor?: string;