Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading