Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeScript 使用报错,没有导出对 opts 配置的类型声明 #153

Closed
everfindtop opened this issue Feb 27, 2018 · 2 comments
Closed

Comments

@everfindtop
Copy link

<ReactEcharts
     option={option}
     notMerge={true}
     lazyUpdate={true}
     opts={{ renderer: 'svg' }}
/>

报错如下:

[ts] 类型“IntrinsicAttributes & IntrinsicClassAttributes<ReactEcharts> & Readonly<{ children?: ReactNode; }> & Readonly<ReactEchartsPropsTypes>”上不存在属性“opts”。
@hustcc
Copy link
Owner

hustcc commented Feb 27, 2018

感谢反馈,上次升级添加 svg 支持,没有更新 ts 声明。

暂时使用忽略掉这个 ts 校验吧!

@hustcc hustcc closed this as completed in 8514679 Feb 27, 2018
@hustcc
Copy link
Owner

hustcc commented Mar 1, 2018

v2.0.7 published.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants