a2ui-project / a2ui-project/a2ui
Reserve internal keywords in component props like child, children, path, etc
オープン
component: specification
P2
type: feature/enhancement
- 主要言語
- TypeScript
- スター
- 16.4k
- フォーク
- 1.3k
- 平均マージ
- 2日 13時間
- マージ済み PR(30日)
- 134
説明
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.
コントリビューションガイド
評価
この issue はまだ評価されていません。