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

fix: fix incorrect type declarations #30776

Merged
merged 1 commit into from
Jun 3, 2021

Conversation

qqabcv520
Copy link
Contributor

@qqabcv520 qqabcv520 commented May 30, 2021

[English Template / 英文模板]

🤔 这个变动的性质是?

  • 新特性提交
  • 日常 bug 修复
  • 站点、文档改进
  • 演示代码改进
  • 组件样式/交互改进
  • TypeScript 定义更新
  • 包体积优化
  • 性能优化
  • 功能增强
  • 国际化改进
  • 重构
  • 代码风格优化
  • 测试用例
  • 分支合并
  • 其他改动(是关于什么的改动?)

🔗 相关 Issue

#14445

💡 需求背景和解决方案

开启 tsconfig 的 strictMode,因为一次性需要修改的类型声明太多,所以先分批修复提交,最后再将 tsconfig.json 的strict: true开启。

📝 更新日志

语言 更新描述
🇺🇸 英文 fix incorrect type declarations
🇨🇳 中文 修复不准确的类型声明

☑️ 请求合并前的自查清单

⚠️ 请自检并全部勾选全部选项⚠️

  • 文档已补充或无须补充
  • 代码演示已提供或无须提供
  • TypeScript 定义已补充或无须补充
  • Changelog 已提供或无须提供

@github-actions
Copy link
Contributor

github-actions bot commented May 30, 2021

@codecov
Copy link

codecov bot commented May 30, 2021

Codecov Report

Merging #30776 (3950482) into master (b13e4a3) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##            master    #30776   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files          397       397           
  Lines         7546      7546           
  Branches      2113      2113           
=========================================
  Hits          7546      7546           
Impacted Files Coverage Δ
components/locale-provider/index.tsx 100.00% <ø> (ø)
components/form/Form.tsx 100.00% <100.00%> (ø)
components/form/FormItem.tsx 100.00% <100.00%> (ø)
components/form/hooks/useForm.ts 100.00% <100.00%> (ø)
components/input/Input.tsx 100.00% <100.00%> (ø)
components/locale-provider/LocaleReceiver.tsx 100.00% <100.00%> (ø)
components/page-header/index.tsx 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b13e4a3...3950482. Read the comment docs.

@yesmeck
Copy link
Member

yesmeck commented May 30, 2021

可以配置个 strict 模式的 action,每次提交的类型错误数量不能多余上一次。

@qqabcv520
Copy link
Contributor Author

每次提交的类型错误数量不能多余上一次。

没太懂你这句话什么意思呢? @yesmeck

@yesmeck
Copy link
Member

yesmeck commented May 30, 2021

我意思在 CI 里用 strict 模式跑一次 tsc,跟上一次 commit 的类型错误数量做次对比,这样可以避免引入新的类型错误。

@yoyo837
Copy link
Contributor

yoyo837 commented May 31, 2021

每次提交的类型错误数量不能多余上一次。

没太懂你这句话什么意思呢? @yesmeck

他可能不是留言给你的。

@afc163
Copy link
Member

afc163 commented Jun 1, 2021

看一下 CI。

@qqabcv520 qqabcv520 changed the title fix: fix type declaration fix: fix incorrect type declarations Jun 1, 2021
@qqabcv520
Copy link
Contributor Author

CI 要怎么做?我没太明白

@yoyo837
Copy link
Contributor

yoyo837 commented Jun 2, 2021

CI 现在是通过的

@afc163 afc163 merged commit 47dfa1f into ant-design:master Jun 3, 2021
@qqabcv520 qqabcv520 mentioned this pull request Jun 3, 2021
19 tasks
@zombieJ zombieJ mentioned this pull request Jun 7, 2021
15 tasks
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.

4 participants