File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change 1
1
import { init } from "echarts/core" ;
2
- import type {
3
- SetOptionOpts ,
4
- ECElementEvent ,
5
- ElementEvent ,
6
- EChartsOption
7
- } from "echarts" ;
2
+ import type { SetOptionOpts , ECElementEvent , ElementEvent } from "echarts" ;
8
3
import type { Ref } from "vue" ;
9
4
10
5
export type Injection < T > = T | null | Ref < T | null > | { value : T | null } ;
@@ -23,7 +18,9 @@ export type UpdateOptionsInjection = Injection<UpdateOptions>;
23
18
export type EChartsType = ReturnType < InitType > ;
24
19
type ZRenderType = ReturnType < EChartsType [ "getZr" ] > ;
25
20
export type EventTarget = EChartsType | ZRenderType ;
26
- export type Option = EChartsOption ;
21
+
22
+ type SetOptionType = EChartsType [ "setOption" ] ;
23
+ export type Option = Parameters < SetOptionType > [ 0 ] ;
27
24
28
25
export type LoadingOptions = {
29
26
text ?: string ;
You can’t perform that action at this time.
0 commit comments