foundry-vtt-types
foundry-vtt-types copied to clipboard
Adjust TypeDataField to allow data models for core types
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.