After some testing, you can absolutely provide data models for the base type and any other core-provided types. Our implementation of TypeDataField should reflect that.
We should also make sure that the typing for non-data model entries is Record<string, unknown> as any data can be saved back - the purpose of the system data models is to provide client side validation/filtering, the server treats TypeDataField as an open-ended ObjectField.
After some testing, you can absolutely provide data models for the
base
type and any other core-provided types. Our implementation ofTypeDataField
should reflect that.We should also make sure that the typing for non-data model entries is
Record<string, unknown>
as any data can be saved back - the purpose of the system data models is to provide client side validation/filtering, the server treatsTypeDataField
as an open-ended ObjectField.