foundry-vtt-types
foundry-vtt-types copied to clipboard
Look into `TypeDataModel`'s `_preCreate`/`_onCreate`/`_preUpdate`/`_onUpdate`/`_preDelete`/`_onDelete`
trafficstars
I find it suspicious that for the options parameter that all of these methods use something like Document.OnUpdateOptions<any>, the commonality being any. I believe that this will effectively make it such that you have to handle being part of any document.
I believe the easy fix is to change it to Parent, however it has to be assured that that is correct.