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

Update `types.mjs`

Open JPMeehan opened this issue 1 year ago • 1 comments
trafficstars

resources/app/common/types.mjs

  • Consider if these are still supposed to be in the global scope or to change them to module exports as types a la client.mjs
  • Make individual type fixes for the v11=>v12 changes
  • Possibly the "correct export" for #2674

JPMeehan avatar Jul 26 '24 23:07 JPMeehan

another TODO left from #2600 and #2743 - remove DocumentModificationContext.

  • Foundry leaves the options for _preCreate functionally untyped (object without corresponding typedef)
  • Type should be an easily extensible interface, as at least for _preCreate the options are largely forwarded from the initial operation

JPMeehan avatar Jul 30 '24 14:07 JPMeehan