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

tree/index.d.ts seems incorrect. "AntTreeNodeProps" has invalid "icon" property type. #10838

Closed
Voronar opened this issue Jun 7, 2018 · 1 comment
Labels

Comments

@Voronar
Copy link
Contributor

Voronar commented Jun 7, 2018

Version

3.6.1

Environment

OSX, Chrome

Reproduction link

See reproduction below as well.

Steps to reproduce

Try to pass React.ReactNode type property in to TreeNode component icon property.

What is expected?

You should be able to pass React.ReactNode type property in to TreeNode component icon property.

What is actually happening?

AntTreeNodeProps type contains incorrect icon property type.

@ant-design-bot
Copy link
Contributor

Hello @Voronar, your issue has been closed because it does not conform to our issue requirements. Please use the Issue Helper to create an issue, thank you!

Voronar added a commit to Voronar/ant-design that referenced this issue Jun 7, 2018
@Voronar Voronar mentioned this issue Jun 7, 2018
10 tasks
Voronar added a commit to Voronar/ant-design that referenced this issue Jun 7, 2018
@Voronar Voronar mentioned this issue Jun 7, 2018
10 tasks
afc163 pushed a commit that referenced this issue Jun 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants