apache / apache/echarts

[Feature] 不能将类型“EChartsType”分配给类型“ECharts”。 类型具有私有属性“_ssr”的单独声明。ts-plugin(2322)

Open
#20,406 2 comments 0 reactions 0 assignees View on GitHub
missing-demo support typescript waiting-for: author
Dominant language
TypeScript
Stars
67.3k
Forks
19.8k
Avg merge
11d 14h
Merged PRs (30d)
8

Description

### What problem does this feature solve?

不想看到这个错误提示,一个大红线

### What does the proposed API look like?

import { EChartsType } from 'echarts/core';
let myChart : EChartsType | null = null;
myChart = echarts.init(echartRef.value)
mychart下面飘着大红线非常讨厌,init返回的也是EChartsType类型的对象啊,为啥‘’不能将类型“EChartsType”分配给类型“ECharts”。 类型具有私有属性“_ssr”的单独声明。ts-plugin(2322)‘’ 这么讨厌的票着的大红?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.