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