File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable @typescript-eslint/no-explicit-any */
2
- import { init } from "echarts/core" ;
2
+ import { init , SetOptionOpts } from "echarts/core" ;
3
3
import { Ref } from "vue" ;
4
4
5
5
type InitType = typeof init ;
@@ -13,15 +13,7 @@ export type EChartsType = ReturnType<InitType>;
13
13
type SetOptionType = EChartsType [ "setOption" ] ;
14
14
export type Option = Parameters < SetOptionType > [ 0 ] ;
15
15
16
- // TODO: Wait for apache/echarts#14289 to ship in v5.1,
17
- // so that we can use SetOptionOpts directly
18
- export interface UpdateOptions {
19
- notMerge ?: boolean ;
20
- lazyUpdate ?: boolean ;
21
- silent ?: boolean ;
22
- replaceMerge ?: any ;
23
- transition ?: any ;
24
- }
16
+ export type UpdateOptions = Omit < SetOptionOpts , "notMerge" > ;
25
17
export type UpdateOptionsInjection =
26
18
| UpdateOptions
27
19
| null
You can’t perform that action at this time.
0 commit comments