Skip to content

Commit

Permalink
fix: Replace EChartsOption/EChartsInstance type (#586)
Browse files Browse the repository at this point in the history
  • Loading branch information
xyz-26 authored Mar 5, 2025
1 parent b07584b commit 3381db6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion __tests__/charts/simple-spec.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import React from 'react';
import ReactECharts from '../../src/';
import type { EChartsOption } from '../../src/';
import { render, destroy, createDiv, removeDom } from '../utils';

const options = {
const options: EChartsOption = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
Expand Down
5 changes: 3 additions & 2 deletions src/types.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { CSSProperties } from 'react';
import type { EChartsOption, EChartsType } from 'echarts';

export type EChartsOption = any;
export type { EChartsOption };

export type EChartsInstance = any;
export type EChartsInstance = EChartsType;

export type Opts = {
readonly devicePixelRatio?: number;
Expand Down

0 comments on commit 3381db6

Please sign in to comment.