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

refactor: adjust element type definition #5865

Merged
merged 2 commits into from
Jun 14, 2024
Merged

refactor: adjust element type definition #5865

merged 2 commits into from
Jun 14, 2024

Conversation

Aarebecca
Copy link
Contributor

  • 调整元素类型定义
    • 调整前:元素类型由对应的类进行约束,例如 type Node = BaseNode<any>,这要求所有的节点都继承自 BaseNode
    • 调整后:通过类型进行约束
  • 移除类型:Points, Position

  • Adjusted element type definition
    • Before: The element type is constrained by the corresponding class, such as' type Node = BaseNode ', which requires that all nodes inherit from 'BaseNode'
    • Adjusted: constrained by type
  • Remove types: Points, Position

@hustcc hustcc merged commit e0b4e44 into v5 Jun 14, 2024
5 checks passed
@hustcc hustcc deleted the refactor/element-define branch June 14, 2024 01:19
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

2 participants