foundry-vtt-types icon indicating copy to clipboard operation
foundry-vtt-types copied to clipboard

Adjust TypeDataField to allow data models for core types

Open JPMeehan opened this issue 1 year ago • 0 comments

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.

JPMeehan avatar Jul 31 '24 16:07 JPMeehan