a2ui-project / a2ui-project/a2ui
Reserve internal keywords in component props like child, children, path, etc
- Ngôn ngữ chính
- TypeScript
- Star
- 16.4k
- Fork
- 1.3k
- Merge trung bình
- 2 ngày 13 giờ
- Pull request đã merge (30 ngày)
- 134
Mô tả
There are some special keywords that should be reserved for the internals of A2UI. Some examples are child, children, path, among others. This surfaced in #1347.
We should do what we can to prevent unintended name collisions with these internal keywords. Maybe add an uncommon prefix, or have some type of build time check that prevents developers from using reserved keywords in their component props
This applies both to internal catalog components, as well as custom components created by devs.
Hướng dẫn đóng góp
Hướng nghiên cứu
Look at the component prop system in the codebase, likely in core files handling component definitions. Identify where prop names are validated or processed. Reference issue #1347 to understand the specific collision that surfaced. Determine how to add a prefix or build-time check, and ensure it works for both internal catalog components and custom components. Testing will involve creating components with reserved keywords to verify they are blocked or flagged.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- typescript
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 45/100