File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 11import ApexCharts , { ApexOptions } from "apexcharts" ;
22import { DefineComponent , Plugin } from "vue" ;
33
4- export interface VueApexChartsComponent {
4+ export interface VueApexChartsComponentProps {
55 // data
66 readonly chart ?: ApexCharts ;
77 // props
@@ -24,7 +24,9 @@ export interface VueApexChartsComponent {
2424 series : any ;
2525 width ?: string | number ;
2626 height ?: string | number ;
27- // method
27+ }
28+
29+ export interface VueApexChartsComponentMethods {
2830 init ( ) : Promise < void > ;
2931 refresh ( ) : Promise < void > ;
3032 destroy ( ) : void ;
@@ -52,7 +54,7 @@ export interface VueApexChartsComponent {
5254 dataURI ( options ?: { scale ?: number ; width ?: number } ) : Promise < void > ;
5355}
5456
55- type VueApexChartsComponentType = DefineComponent < VueApexChartsComponent > ;
57+ type VueApexChartsComponentType = DefineComponent < VueApexChartsComponentProps , VueApexChartsComponentMethods > ;
5658
5759declare const VueApexCharts : VueApexChartsComponentType & Plugin ;
5860
You can’t perform that action at this time.
0 commit comments