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

Backtop 组件声明文件有误 #24315

Closed
1 task done
Innei opened this issue May 20, 2020 · 1 comment
Closed
1 task done

Backtop 组件声明文件有误 #24315

Innei opened this issue May 20, 2020 · 1 comment

Comments

@Innei
Copy link

Innei commented May 20, 2020

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

https://gist.github.com/Innei/ca6a64fc862acbbff4308612d5bed5ce

Steps to reproduce

类型声明报错,
Type '{ children: Element; }' has no properties in common with type 'IntrinsicAttributes & BackTopProps'

What is expected?

增加 interface children 声明

What is actually happening?

不报错

Environment Info
antd 4.2.4
React 16.13.1
System macOS 10.15.2
Browser chrome 8x

大概是最近一次 重构 react hook 导致的 #23575

image

@afc163
Copy link
Member

afc163 commented May 20, 2020

Fixed in #24235

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

3 participants