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 handling of specific array types in auto API components #2254

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

chiaweilee
Copy link
Member

  • Resolved logic errors when processing fixed-length tuple types such as [number, number].
  • Enhanced type inference to ensure accurate handling of array types during component generation.

This update improves the compatibility and stability of auto API components with complex array types.

🤔 这个变动的性质是?/ What is the nature of this change?

  • 新特性提交 / New feature
  • bug 修复 / Fix bug
  • 样式优化 / Style optimization
  • 代码风格优化 / Code style optimization
  • 性能优化 / Performance optimization
  • 构建优化 / Build optimization
  • 网站、文档、Demo 改进 / Website, documentation, demo improvements
  • 重构代码或样式 / Refactor code or style
  • 测试相关 / Test related
  • 其他 / Other

🔗 相关 Issue / Related Issue

💡 需求背景和解决方案 / Background or solution

在之前的版本中,自动 API 表格组件在处理固定长度的元组类型(例如 [number, number])时,会错误地将其识别为 unknown[] 类型。

In the previous version, the auto API table component incorrectly treated fixed-length tuple types (e.g., [number, number]) as unknown[].

📝 更新日志 / Changelog

Language Changelog
🇺🇸 English Fix handling of specific array types in auto API components
🇨🇳 Chinese 修复自动 API 组件中特定数组类型的处理问题

- Resolved logic errors when processing fixed-length tuple types such as [number, number].
- Enhanced type inference to ensure accurate handling of array types during component generation.

This update improves the compatibility and stability of auto API components with complex array types.
Copy link

vercel bot commented Feb 12, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
dumi ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 13, 2025 2:38am

Copy link
Collaborator

@jeffwcx jeffwcx left a comment

Choose a reason for hiding this comment

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

examples/normal加个示例会更好

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.

2 participants