Commit f9ddcf0
Fix: Make name and label optional in FieldConfig to fix TypeScript compilation errors
The @objectstack/spec package requires name and label fields on the Field type, but when fields are defined in ObjectConfig.fields as a Record<string, FieldConfig>, the name is inferred from the record key. This change makes name and label optional in FieldConfig to match this usage pattern.
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>1 parent 5b07fd7 commit f9ddcf0
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | | - | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
120 | 126 | | |
121 | 127 | | |
122 | 128 | | |
| |||
0 commit comments