foundry-vtt-types
foundry-vtt-types copied to clipboard
V11 Data Models
trafficstars
This is a draft PR to get data models working as they are in Foundry V11.
Tracking the goals for the branch
- [x] client
- [x] core
- [x] hooks
- [x] packages
- [x] data
- [x] abstract
- [x] collections
- [x] documents
- [x] core
- [x] common
- [x] abstract
- [x] data
- [x] documents
- [x] packages
- [x] config.mjs
- [x] constants.mjs
- [x] module.mjs
- [x] types.mjs
Documents status (excluding TODOs)
- [x] ActiveEffect
- [x] ActorDelta
- [x] Actor
- [x] Adventure
- [x] AmbientLight
- [x] AmbientSound
- [x] Card
- [x] Cards
- [x] ChatMessage
- [x] Combat
- [x] Combatant
- [x] Drawing
- [x] FogExploration
- [x] Folder
- [x] Item
- [x] JournalEntryPage
- [x] JournalEntry
- [x] Macro
- [x] MeasuredTemplate
- [x] Note
- [x] PlaylistSound
- [x] Playlist
- [x] Scene
- [x] Setting
- [x] TableResult
- [x] Table
- [x] Tile
- [x] Token
- [x] User
- [x] Wall
Outstanding issues
- [x]
StringFieldchoices (most visible in Folder) - [x] Embedded Collections, especially recursion issues surrounding Canvas documents like Token and AmbientLight
- [x] ForeignDocumentField returns the noted type rather than the ConfiguredDocumentClass
- [x]
NumberField.Optionshandling (for TableResult) - [x]
PlaceablesLayer#history"Type instantiation is excessively deep and possibly infinite" - [x]
ShaderField#_cast"Initialized Type" handling isn't happy