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

type: update React.forwardRef type #41189

Merged
merged 3 commits into from
Mar 14, 2023
Merged

type: update React.forwardRef type #41189

merged 3 commits into from
Mar 14, 2023

Conversation

li-jia-nan
Copy link
Member

[中文版模板 / Chinese template]

🤔 This is a ...

  • New feature
  • Bug fix
  • Site / documentation update
  • Demo update
  • Component style update
  • TypeScript definition update
  • Bundle size optimization
  • Performance optimization
  • Enhancement feature
  • Internationalization
  • Refactoring
  • Code style optimization
  • Test Case
  • Branch merge
  • Workflow
  • Other (about what?)

🔗 Related issue link

💡 Background and solution

  • type: update React.forwardRef type #41188

  • 在 feature 分支中,这里的泛型类型是 CheckboxRef,到时候进行 Branch merge 的时候可能会出现冲突,如果冲突直接采用 feature 中的类型即可。

📝 Changelog

Language Changelog
🇺🇸 English type: update React.forwardRef type
🇨🇳 Chinese 更新 React.forwardRef 类型定义

☑️ Self-Check before Merge

⚠️ Please check all items below before requesting a reviewing. ⚠️

  • Doc is updated/provided or not needed
  • Demo is updated/provided or not needed
  • TypeScript definition is updated/provided or not needed
  • Changelog is provided or not needed

@github-actions
Copy link
Contributor

github-actions bot commented Mar 13, 2023

@@ -84,7 +84,7 @@ const InternalRadio: React.ForwardRefRenderFunction<HTMLElement, RadioProps> = (
);
};

const Radio = React.forwardRef<unknown, RadioProps>(InternalRadio);
const Radio = React.forwardRef<HTMLElement, RadioProps>(InternalRadio);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

在 feature 分支中,这里的泛型类型是 CheckboxRef,到时候进行 Branch merge 的时候可能会出现冲突,如果冲突直接采用 feature 中的类型即可。

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那这里不改了吧,如果有用户依赖了显式的 HTMLElement,到时候发 minor 又会 break

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里回滚了,正好发现另一个地方有问题,顺便改掉了

@github-actions
Copy link
Contributor

github-actions bot commented Mar 13, 2023

size-limit report 📦

Path Size
./dist/antd.min.js 374.31 KB
./dist/antd-with-locales.min.js 431.23 KB

@codecov
Copy link

codecov bot commented Mar 13, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01 ⚠️

Comparison is base (8109f47) 99.99% compared to head (30b6857) 99.99%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #41189      +/-   ##
==========================================
- Coverage   99.99%   99.99%   -0.01%     
==========================================
  Files         610      610              
  Lines       10486    10450      -36     
  Branches     2865     2847      -18     
==========================================
- Hits        10485    10449      -36     
  Misses          1        1              
Impacted Files Coverage Δ
components/badge/ScrollNumber.tsx 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@zombieJ zombieJ merged commit 2f02fe0 into master Mar 14, 2023
@zombieJ zombieJ deleted the master-CheckboxRef branch March 14, 2023 02:54
@PeachScript PeachScript mentioned this pull request Mar 20, 2023
20 tasks
RedJue pushed a commit to RedJue/ant-design that referenced this pull request Apr 4, 2023
* type: update React.forwardRef type

* type: revert
RedJue pushed a commit to RedJue/ant-design that referenced this pull request Apr 25, 2023
* type: update React.forwardRef type

* type: revert
RedJue pushed a commit to RedJue/ant-design that referenced this pull request Apr 25, 2023
* type: update React.forwardRef type

* type: revert
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

Successfully merging this pull request may close these issues.

None yet

4 participants