ant-design / ant-design/pro-components
🐛[BUG]打包之后useControlModel这个方法ts类型检查错误不能打包
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
### 🐛 bug 描述
本地开发正常,打包ts类型错误显示在 useControlModel hook类型.d.ts文件错误
### 📷 复现步骤
### 🏞 期望结果
### 💻 复现代码
### © 版本信息
- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]
### 🚑 其他信息

Contributor guide
Research direction
Start by reproducing the production TypeScript build and inspect the declaration error involving the useControlModel hook. Compare the build-time error with the stated behavior that local development works; done means the package builds without that type error. The issue does not name a source file, test, or version, so those details must be identified first.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100