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

Look into `TypeDataModel`'s `_preCreate`/`_onCreate`/`_preUpdate`/`_onUpdate`/`_preDelete`/`_onDelete`

Open LukeAbby opened this issue 1 year ago • 0 comments
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.

LukeAbby avatar Oct 19 '24 20:10 LukeAbby