foundry-vtt-types
foundry-vtt-types copied to clipboard
Update `fields.mjs`
resources/app/common/data/fields.mjs
- [ ] Add new typedefs
- [ ] Add Form Field integration methods
- [ ] Add Active Effect application methods
- [ ] Add DocumentUUIDField
- [ ] Add AnyField
- [ ] Add DocumentTypeField
- [ ] Add TypedSchemaField
- [ ] Remove deprecated fields
@LukeAbby DocumentTypeField is the biggest blocker of all of these because it's a StringField extension that's used by the big document types like Actor and Item.
After toInput is implemented, update the formInput and formGroup handlebars helpers in src/foundry/client/apps/templates.d.mts
TODO after 0f58b4f3f1a15b12dd431a2385d6f0faede1514a
- [x] Consider extracting the callback on
DataFieldOptions["validate"]to aDataFieldValidatorcallback as defined by Foundry (possiblyDataField.Validator?) - [x] Implementation of Form Field helpers needs improvement