@league-of-foundry-developers/foundry-vtt-types 12.331.4-beta → 12.331.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (377) hide show
  1. package/package.json +18 -1
  2. package/src/configuration/configuration.d.mts +1 -1
  3. package/src/foundry/client/apps/app.d.mts +1 -1
  4. package/src/foundry/client/apps/av/av-config.d.mts +1 -1
  5. package/src/foundry/client/apps/av/cameras.d.mts +1 -1
  6. package/src/foundry/client/apps/dice/dice-config.d.mts +1 -1
  7. package/src/foundry/client/apps/form.d.mts +1 -1
  8. package/src/foundry/client/apps/forms/actor.d.mts +1 -1
  9. package/src/foundry/client/apps/forms/adventure-exporter.d.mts +1 -1
  10. package/src/foundry/client/apps/forms/adventure-importer.d.mts +1 -1
  11. package/src/foundry/client/apps/forms/base-sheet.d.mts +1 -1
  12. package/src/foundry/client/apps/forms/card-config.d.mts +1 -1
  13. package/src/foundry/client/apps/forms/cards-config.d.mts +1 -1
  14. package/src/foundry/client/apps/forms/combat-config.d.mts +1 -1
  15. package/src/foundry/client/apps/forms/effect-config.d.mts +1 -1
  16. package/src/foundry/client/apps/forms/folder-config.d.mts +7 -2
  17. package/src/foundry/client/apps/forms/fonts.d.mts +1 -1
  18. package/src/foundry/client/apps/forms/grid-config.d.mts +1 -1
  19. package/src/foundry/client/apps/forms/image-popout.d.mts +1 -1
  20. package/src/foundry/client/apps/forms/item.d.mts +1 -1
  21. package/src/foundry/client/apps/forms/journal-page-sheet.d.mts +1 -1
  22. package/src/foundry/client/apps/forms/journal-sheet.d.mts +1 -1
  23. package/src/foundry/client/apps/forms/macro-config.d.mts +1 -1
  24. package/src/foundry/client/apps/forms/measure-template.d.mts +1 -1
  25. package/src/foundry/client/apps/forms/ownership.d.mts +1 -1
  26. package/src/foundry/client/apps/forms/playlist-config.d.mts +1 -1
  27. package/src/foundry/client/apps/forms/playlist-sound-config.d.mts +1 -1
  28. package/src/foundry/client/apps/forms/roll-table-config.d.mts +1 -1
  29. package/src/foundry/client/apps/forms/scene-config.d.mts +1 -1
  30. package/src/foundry/client/apps/forms/sheet-config.d.mts +1 -1
  31. package/src/foundry/client/apps/forms/user-config.d.mts +1 -1
  32. package/src/foundry/client/apps/hud/chatbubble.d.mts +1 -1
  33. package/src/foundry/client/apps/hud/container.d.mts +1 -1
  34. package/src/foundry/client/apps/hud/controls.d.mts +1 -1
  35. package/src/foundry/client/apps/hud/hotbar.d.mts +1 -1
  36. package/src/foundry/client/apps/hud/hud.d.mts +1 -1
  37. package/src/foundry/client/apps/hud/menu.d.mts +1 -1
  38. package/src/foundry/client/apps/hud/navigation.d.mts +1 -1
  39. package/src/foundry/client/apps/hud/pause.d.mts +1 -1
  40. package/src/foundry/client/apps/hud/players.d.mts +1 -1
  41. package/src/foundry/client/apps/placeables/drawing-config.d.mts +1 -1
  42. package/src/foundry/client/apps/placeables/drawing-hud.d.mts +1 -1
  43. package/src/foundry/client/apps/placeables/note-config.d.mts +1 -1
  44. package/src/foundry/client/apps/placeables/tile-config.d.mts +1 -1
  45. package/src/foundry/client/apps/placeables/tile-hud.d.mts +1 -1
  46. package/src/foundry/client/apps/placeables/token-config.d.mts +1 -1
  47. package/src/foundry/client/apps/placeables/token-hud.d.mts +1 -1
  48. package/src/foundry/client/apps/placeables/wall-config.d.mts +1 -1
  49. package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +1 -1
  50. package/src/foundry/client/apps/sidebar/apps/module-management.d.mts +1 -1
  51. package/src/foundry/client/apps/sidebar/apps/support-details.d.mts +1 -1
  52. package/src/foundry/client/apps/sidebar/apps/tours-management.d.mts +1 -1
  53. package/src/foundry/client/apps/sidebar/apps/world-config.d.mts +1 -1
  54. package/src/foundry/client/apps/sidebar/directory-tab-mixin.d.mts +1 -1
  55. package/src/foundry/client/apps/sidebar/package-configuration.d.mts +1 -1
  56. package/src/foundry/client/apps/sidebar/sidebar.d.mts +1 -1
  57. package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.mts +1 -1
  58. package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.mts +1 -1
  59. package/src/foundry/client/apps/sidebar/tabs/chat-log.d.mts +1 -1
  60. package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.mts +1 -1
  61. package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.mts +1 -1
  62. package/src/foundry/client/apps/sidebar/tabs/items-directory.d.mts +1 -1
  63. package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.mts +1 -1
  64. package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.mts +1 -1
  65. package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.mts +1 -1
  66. package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.mts +1 -1
  67. package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.mts +1 -1
  68. package/src/foundry/client/apps/sidebar/tabs/settings.d.mts +1 -1
  69. package/src/foundry/client/av/client.d.mts +1 -1
  70. package/src/foundry/client/av/clients/simplepeer.d.mts +1 -1
  71. package/src/foundry/client/av/master.d.mts +1 -1
  72. package/src/foundry/client/av/settings.d.mts +1 -1
  73. package/src/foundry/client/config.d.mts +1 -1
  74. package/src/foundry/client/core/hooks.d.mts +1 -1
  75. package/src/foundry/client/core/image.d.mts +1 -1
  76. package/src/foundry/client/core/keybindings.d.mts +1 -1
  77. package/src/foundry/client/core/packages.d.mts +4 -2
  78. package/src/foundry/client/core/settings.d.mts +1 -1
  79. package/src/foundry/client/core/socket.d.mts +1 -1
  80. package/src/foundry/client/core/tooltip.d.mts +1 -1
  81. package/src/foundry/client/core/tour.d.mts +1 -1
  82. package/src/foundry/client/core/utils.d.mts +1 -1
  83. package/src/foundry/client/core/workers.d.mts +1 -1
  84. package/src/foundry/client/data/abstract/canvas-document.d.mts +9 -20
  85. package/src/foundry/client/data/abstract/client-document.d.mts +133 -71
  86. package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +2 -2
  87. package/src/foundry/client/data/abstract/document-collection.d.mts +1 -1
  88. package/src/foundry/client/data/abstract/world-collection.d.mts +8 -1
  89. package/src/foundry/client/data/collections/actors.d.mts +1 -1
  90. package/src/foundry/client/data/collections/cards.d.mts +1 -1
  91. package/src/foundry/client/data/collections/combats.d.mts +1 -1
  92. package/src/foundry/client/data/collections/compendium-collection.d.mts +5 -4
  93. package/src/foundry/client/data/collections/fog.d.mts +1 -1
  94. package/src/foundry/client/data/collections/folder.d.mts +1 -1
  95. package/src/foundry/client/data/collections/items.d.mts +1 -1
  96. package/src/foundry/client/data/collections/journal.d.mts +1 -1
  97. package/src/foundry/client/data/collections/macros.d.mts +1 -1
  98. package/src/foundry/client/data/collections/messages.d.mts +1 -1
  99. package/src/foundry/client/data/collections/playlists.d.mts +1 -1
  100. package/src/foundry/client/data/collections/scenes.d.mts +1 -1
  101. package/src/foundry/client/data/collections/settings.d.mts +1 -1
  102. package/src/foundry/client/data/collections/tables.d.mts +1 -1
  103. package/src/foundry/client/data/collections/users.d.mts +4 -4
  104. package/src/foundry/client/data/documents/active-effect.d.mts +124 -48
  105. package/src/foundry/client/data/documents/actor-delta.d.mts +53 -22
  106. package/src/foundry/client/data/documents/actor.d.mts +147 -93
  107. package/src/foundry/client/data/documents/adventure.d.mts +74 -45
  108. package/src/foundry/client/data/documents/ambient-light.d.mts +13 -10
  109. package/src/foundry/client/data/documents/ambient-sound.d.mts +12 -7
  110. package/src/foundry/client/data/documents/card.d.mts +57 -34
  111. package/src/foundry/client/data/documents/cards.d.mts +171 -135
  112. package/src/foundry/client/data/documents/chat-message.d.mts +131 -72
  113. package/src/foundry/client/data/documents/combat.d.mts +80 -60
  114. package/src/foundry/client/data/documents/combatant.d.mts +53 -20
  115. package/src/foundry/client/data/documents/drawing.d.mts +12 -7
  116. package/src/foundry/client/data/documents/fog-exploration.d.mts +57 -17
  117. package/src/foundry/client/data/documents/folder.d.mts +114 -31
  118. package/src/foundry/client/data/documents/item.d.mts +31 -21
  119. package/src/foundry/client/data/documents/journal-entry-page.d.mts +90 -57
  120. package/src/foundry/client/data/documents/journal-entry.d.mts +29 -34
  121. package/src/foundry/client/data/documents/macro.d.mts +60 -34
  122. package/src/foundry/client/data/documents/measured-template.d.mts +13 -8
  123. package/src/foundry/client/data/documents/note.d.mts +14 -7
  124. package/src/foundry/client/data/documents/playlist-sound.d.mts +29 -33
  125. package/src/foundry/client/data/documents/playlist.d.mts +74 -54
  126. package/src/foundry/client/data/documents/region-behavior.d.mts +16 -7
  127. package/src/foundry/client/data/documents/region.d.mts +53 -48
  128. package/src/foundry/client/data/documents/scene.d.mts +310 -89
  129. package/src/foundry/client/data/documents/setting.d.mts +24 -23
  130. package/src/foundry/client/data/documents/table-result.d.mts +20 -8
  131. package/src/foundry/client/data/documents/table.d.mts +19 -13
  132. package/src/foundry/client/data/documents/tile.d.mts +13 -7
  133. package/src/foundry/client/data/documents/token.d.mts +148 -117
  134. package/src/foundry/client/data/documents/user.d.mts +141 -53
  135. package/src/foundry/client/data/documents/wall.d.mts +17 -10
  136. package/src/foundry/client/game.d.mts +1 -1
  137. package/src/foundry/client/head.d.mts +1 -1
  138. package/src/foundry/client/hooks.d.mts +9 -18
  139. package/src/foundry/client/pixi/board.d.mts +3 -2
  140. package/src/foundry/client/pixi/core/containers/base-canvas-group.d.mts +1 -1
  141. package/src/foundry/client/pixi/core/containers/cached-container.d.mts +1 -1
  142. package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +1 -1
  143. package/src/foundry/client/pixi/core/containers/point-source-mesh.d.mts +1 -1
  144. package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +1 -1
  145. package/src/foundry/client/pixi/core/containers/quadtree.d.mts +1 -1
  146. package/src/foundry/client/pixi/core/containers/sprite-mesh.d.mts +1 -1
  147. package/src/foundry/client/pixi/core/containers/unbound-container.d.mts +1 -1
  148. package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +1 -1
  149. package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +1 -1
  150. package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +1 -1
  151. package/src/foundry/client/pixi/core/interaction/ping.d.mts +1 -1
  152. package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +1 -1
  153. package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +1 -8
  154. package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +1 -1
  155. package/src/foundry/client/pixi/core/interaction/targets.d.mts +1 -1
  156. package/src/foundry/client/pixi/core/loader.d.mts +1 -1
  157. package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +1 -1
  158. package/src/foundry/client/pixi/core/shapes/polygon-mesher.d.mts +1 -1
  159. package/src/foundry/client/pixi/core/shapes/precise-text.d.mts +1 -1
  160. package/src/foundry/client/pixi/core/shapes/ray.d.mts +1 -1
  161. package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +1 -1
  162. package/src/foundry/client/pixi/extensions/circle.d.mts +1 -1
  163. package/src/foundry/client/pixi/extensions/observable-transform.d.mts +1 -1
  164. package/src/foundry/client/pixi/extensions/polygon.d.mts +1 -1
  165. package/src/foundry/client/pixi/extensions/rectangle.d.mts +1 -1
  166. package/src/foundry/client/pixi/groups/effects.d.mts +1 -1
  167. package/src/foundry/client/pixi/groups/environment.d.mts +1 -1
  168. package/src/foundry/client/pixi/groups/hidden.d.mts +1 -1
  169. package/src/foundry/client/pixi/groups/interface.d.mts +1 -1
  170. package/src/foundry/client/pixi/groups/overlay.d.mts +1 -1
  171. package/src/foundry/client/pixi/groups/primary.d.mts +1 -1
  172. package/src/foundry/client/pixi/groups/rendered.d.mts +1 -1
  173. package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +1 -1
  174. package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +1 -1
  175. package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +1 -1
  176. package/src/foundry/client/pixi/layers/controls/cursor.d.mts +1 -1
  177. package/src/foundry/client/pixi/layers/controls/door.d.mts +1 -1
  178. package/src/foundry/client/pixi/layers/controls/layer.d.mts +1 -1
  179. package/src/foundry/client/pixi/layers/controls/ruler.d.mts +1 -1
  180. package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +1 -1
  181. package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +1 -1
  182. package/src/foundry/client/pixi/layers/effects/darkness-effects.d.mts +1 -1
  183. package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +1 -1
  184. package/src/foundry/client/pixi/layers/effects/visibility.d.mts +1 -1
  185. package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +1 -1
  186. package/src/foundry/client/pixi/layers/effects/weather/particles/leaves.d.mts +1 -1
  187. package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +1 -1
  188. package/src/foundry/client/pixi/layers/grid/highlight.d.mts +1 -1
  189. package/src/foundry/client/pixi/layers/grid/layer.d.mts +1 -1
  190. package/src/foundry/client/pixi/layers/grid/mesh.d.mts +1 -1
  191. package/src/foundry/client/pixi/layers/masks/depth.d.mts +1 -1
  192. package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +1 -1
  193. package/src/foundry/client/pixi/layers/masks/vision.d.mts +1 -1
  194. package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +1 -1
  195. package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +1 -1
  196. package/src/foundry/client/pixi/layers/placeables/notes.d.mts +1 -1
  197. package/src/foundry/client/pixi/layers/placeables/regions.d.mts +1 -1
  198. package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +1 -1
  199. package/src/foundry/client/pixi/layers/placeables/templates.d.mts +1 -1
  200. package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +1 -1
  201. package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +1 -1
  202. package/src/foundry/client/pixi/layers/placeables/walls.d.mts +1 -1
  203. package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +1 -1
  204. package/src/foundry/client/pixi/perception/detection-mode.d.mts +1 -1
  205. package/src/foundry/client/pixi/perception/fog.d.mts +1 -1
  206. package/src/foundry/client/pixi/perception/perception-manager.d.mts +1 -1
  207. package/src/foundry/client/pixi/perception/vision-mode.d.mts +1 -1
  208. package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +1 -1
  209. package/src/foundry/client/pixi/placeable.d.mts +2 -1
  210. package/src/foundry/client/pixi/placeables/drawing.d.mts +1 -1
  211. package/src/foundry/client/pixi/placeables/light.d.mts +1 -7
  212. package/src/foundry/client/pixi/placeables/note.d.mts +1 -1
  213. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +1 -1
  214. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-graphics.d.mts +1 -1
  215. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-occludable-object.d.mts +1 -1
  216. package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-sprite-mesh.d.mts +1 -1
  217. package/src/foundry/client/pixi/placeables/region.d.mts +1 -1
  218. package/src/foundry/client/pixi/placeables/sound.d.mts +1 -1
  219. package/src/foundry/client/pixi/placeables/template.d.mts +1 -1
  220. package/src/foundry/client/pixi/placeables/tile.d.mts +1 -1
  221. package/src/foundry/client/pixi/placeables/token.d.mts +1 -1
  222. package/src/foundry/client/pixi/placeables/wall.d.mts +1 -1
  223. package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +1 -1
  224. package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +1 -1
  225. package/src/foundry/client/pixi/webgl/helpers/framebuffer-snapshot.d.mts +1 -1
  226. package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +1 -1
  227. package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +1 -1
  228. package/src/foundry/client/pixi/webgl/shaders/base-shader-mixin.d.mts +1 -1
  229. package/src/foundry/client/pixi/webgl/shaders/base-shader.d.mts +1 -1
  230. package/src/foundry/client/pixi/webgl/shaders/filters/base-filter.d.mts +1 -1
  231. package/src/foundry/client/pixi/webgl/shaders/filters/effects-masking.d.mts +1 -1
  232. package/src/foundry/client/pixi/webgl/shaders/filters/glow-overlay.d.mts +1 -1
  233. package/src/foundry/client/pixi/webgl/shaders/filters/outline-overlay.d.mts +1 -1
  234. package/src/foundry/client/pixi/webgl/shaders/filters/transition.d.mts +1 -1
  235. package/src/foundry/client/pixi/webgl/shaders/filters/visibility.d.mts +1 -1
  236. package/src/foundry/client/pixi/webgl/shaders/filters/vision-mask-filter.d.mts +1 -1
  237. package/src/foundry/client/pixi/webgl/shaders/fragment-channel-mixin.d.mts +1 -1
  238. package/src/foundry/client/pixi/webgl/shaders/grid/grid.d.mts +1 -1
  239. package/src/foundry/client/pixi/webgl/shaders/lighting/effects/fairy-light.d.mts +1 -1
  240. package/src/foundry/client/pixi/webgl/shaders/samplers/base-sampler.d.mts +1 -1
  241. package/src/foundry/client/pixi/webgl/shaders/samplers/token-ring.d.mts +1 -1
  242. package/src/foundry/client/pixi/webgl/shaders/weather/base-weather.d.mts +1 -1
  243. package/src/foundry/client/pixi/webgl/shaders/weather/effect.d.mts +1 -1
  244. package/src/foundry/client/pixi/workers/texture-worker.d.mts +1 -1
  245. package/src/foundry/client/ui/context.d.mts +1 -1
  246. package/src/foundry/client/ui/dialog.d.mts +1 -1
  247. package/src/foundry/client/ui/dragdrop.d.mts +1 -1
  248. package/src/foundry/client/ui/editor.d.mts +1 -1
  249. package/src/foundry/client/ui/filepicker.d.mts +1 -1
  250. package/src/foundry/client/ui/filter.d.mts +1 -1
  251. package/src/foundry/client-esm/applications/api/application.d.mts +1 -9
  252. package/src/foundry/client-esm/applications/api/dialog.d.mts +1 -1
  253. package/src/foundry/client-esm/applications/api/document-sheet.d.mts +1 -1
  254. package/src/foundry/client-esm/applications/api/handlebars-application.d.mts +1 -1
  255. package/src/foundry/client-esm/applications/apps/compendium-art-config.d.mts +1 -1
  256. package/src/foundry/client-esm/applications/apps/permission-config.d.mts +1 -1
  257. package/src/foundry/client-esm/applications/dice/roll-resolver.d.mts +1 -1
  258. package/src/foundry/client-esm/applications/forms/fields.d.mts +1 -1
  259. package/src/foundry/client-esm/applications/sheets/actor-sheet.d.mts +1 -1
  260. package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +1 -1
  261. package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +1 -1
  262. package/src/foundry/client-esm/applications/sheets/item-sheet.d.mts +1 -1
  263. package/src/foundry/client-esm/applications/sheets/region-behavior-config.d.mts +1 -1
  264. package/src/foundry/client-esm/applications/sheets/region-config.d.mts +1 -1
  265. package/src/foundry/client-esm/applications/sheets/user-config.d.mts +1 -1
  266. package/src/foundry/client-esm/applications/ui/region-legend.d.mts +1 -1
  267. package/src/foundry/client-esm/audio/biquad.d.mts +1 -1
  268. package/src/foundry/client-esm/audio/convolver.d.mts +1 -1
  269. package/src/foundry/client-esm/audio/helper.d.mts +1 -1
  270. package/src/foundry/client-esm/audio/sound.d.mts +2 -2
  271. package/src/foundry/client-esm/canvas/edges/collision.d.mts +1 -1
  272. package/src/foundry/client-esm/canvas/edges/edge.d.mts +1 -1
  273. package/src/foundry/client-esm/canvas/edges/vertex.d.mts +1 -1
  274. package/src/foundry/client-esm/canvas/scene-manager.d.mts +1 -1
  275. package/src/foundry/client-esm/canvas/smaa/smaa.d.mts +1 -1
  276. package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +1 -1
  277. package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +1 -1
  278. package/src/foundry/client-esm/canvas/sources/global-light-source.d.mts +1 -1
  279. package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +1 -1
  280. package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +1 -1
  281. package/src/foundry/client-esm/canvas/sources/point-light-source.d.mts +1 -1
  282. package/src/foundry/client-esm/canvas/sources/point-sound-source.d.mts +1 -1
  283. package/src/foundry/client-esm/canvas/sources/point-vision-source.d.mts +1 -1
  284. package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +1 -1
  285. package/src/foundry/client-esm/canvas/tokens/ring-data.d.mts +3 -2
  286. package/src/foundry/client-esm/canvas/tokens/ring.d.mts +1 -1
  287. package/src/foundry/client-esm/data/client-backend.d.mts +1 -1
  288. package/src/foundry/client-esm/data/region-behaviors/adjust-darkness-level.d.mts +4 -5
  289. package/src/foundry/client-esm/data/region-behaviors/base.d.mts +1 -1
  290. package/src/foundry/client-esm/data/region-behaviors/display-scrolling-text.d.mts +1 -1
  291. package/src/foundry/client-esm/data/region-behaviors/toggle-behavior.d.mts +4 -4
  292. package/src/foundry/client-esm/dice/roll.d.mts +5 -8
  293. package/src/foundry/client-esm/dice/terms/coin.d.mts +1 -1
  294. package/src/foundry/client-esm/dice/terms/dice.d.mts +1 -1
  295. package/src/foundry/client-esm/dice/terms/die.d.mts +1 -1
  296. package/src/foundry/client-esm/dice/terms/fate.d.mts +1 -1
  297. package/src/foundry/client-esm/dice/terms/function.d.mts +1 -1
  298. package/src/foundry/client-esm/dice/terms/numeric.d.mts +1 -1
  299. package/src/foundry/client-esm/dice/terms/operator.d.mts +1 -1
  300. package/src/foundry/client-esm/dice/terms/parenthetical.d.mts +1 -1
  301. package/src/foundry/client-esm/dice/terms/pool.d.mts +1 -1
  302. package/src/foundry/client-esm/dice/terms/string.d.mts +1 -1
  303. package/src/foundry/client-esm/dice/terms/term.d.mts +1 -1
  304. package/src/foundry/common/abstract/backend.d.mts +1 -1
  305. package/src/foundry/common/abstract/data.d.mts +197 -146
  306. package/src/foundry/common/abstract/document.d.mts +198 -81
  307. package/src/foundry/common/abstract/embedded-collection-delta.d.mts +1 -1
  308. package/src/foundry/common/abstract/embedded-collection.d.mts +1 -1
  309. package/src/foundry/common/abstract/socket.d.mts +1 -1
  310. package/src/foundry/common/abstract/type-data.d.mts +4 -1
  311. package/src/foundry/common/config.d.mts +7 -1
  312. package/src/foundry/common/constants.d.mts +1 -1
  313. package/src/foundry/common/data/data.d.mts +42 -12
  314. package/src/foundry/common/data/fields.d.mts +656 -252
  315. package/src/foundry/common/documents/_types.d.mts +0 -6
  316. package/src/foundry/common/documents/active-effect.d.mts +116 -53
  317. package/src/foundry/common/documents/actor-delta.d.mts +139 -58
  318. package/src/foundry/common/documents/actor.d.mts +105 -51
  319. package/src/foundry/common/documents/adventure.d.mts +84 -39
  320. package/src/foundry/common/documents/ambient-light.d.mts +66 -38
  321. package/src/foundry/common/documents/ambient-sound.d.mts +66 -38
  322. package/src/foundry/common/documents/card.d.mts +100 -59
  323. package/src/foundry/common/documents/cards.d.mts +97 -42
  324. package/src/foundry/common/documents/chat-message.d.mts +105 -52
  325. package/src/foundry/common/documents/combat.d.mts +101 -48
  326. package/src/foundry/common/documents/combatant.d.mts +94 -50
  327. package/src/foundry/common/documents/drawing.d.mts +87 -46
  328. package/src/foundry/common/documents/fog-exploration.d.mts +87 -41
  329. package/src/foundry/common/documents/folder.d.mts +100 -46
  330. package/src/foundry/common/documents/item.d.mts +116 -45
  331. package/src/foundry/common/documents/journal-entry-page.d.mts +90 -40
  332. package/src/foundry/common/documents/journal-entry.d.mts +90 -39
  333. package/src/foundry/common/documents/macro.d.mts +116 -52
  334. package/src/foundry/common/documents/measured-template.d.mts +80 -44
  335. package/src/foundry/common/documents/note.d.mts +75 -39
  336. package/src/foundry/common/documents/playlist-sound.d.mts +88 -47
  337. package/src/foundry/common/documents/playlist.d.mts +101 -50
  338. package/src/foundry/common/documents/region-behavior.d.mts +71 -40
  339. package/src/foundry/common/documents/region.d.mts +68 -40
  340. package/src/foundry/common/documents/roll-table.d.mts +43 -9
  341. package/src/foundry/common/documents/scene.d.mts +190 -43
  342. package/src/foundry/common/documents/setting.d.mts +98 -42
  343. package/src/foundry/common/documents/table-result.d.mts +98 -48
  344. package/src/foundry/common/documents/tile.d.mts +77 -43
  345. package/src/foundry/common/documents/token.d.mts +95 -52
  346. package/src/foundry/common/documents/user.d.mts +100 -89
  347. package/src/foundry/common/documents/wall.d.mts +47 -17
  348. package/src/foundry/common/grid/base.d.mts +1 -1
  349. package/src/foundry/common/grid/gridless.d.mts +1 -1
  350. package/src/foundry/common/grid/hexagonal.d.mts +1 -1
  351. package/src/foundry/common/grid/square.d.mts +1 -1
  352. package/src/foundry/common/packages/base-package.d.mts +37 -14
  353. package/src/foundry/common/packages/base-system.d.mts +39 -0
  354. package/src/foundry/common/packages/base-world.d.mts +8 -1
  355. package/src/foundry/common/packages/sub-types.d.mts +3 -5
  356. package/src/foundry/common/primitives/array.d.mts +1 -1
  357. package/src/foundry/common/primitives/string.d.mts +1 -1
  358. package/src/foundry/common/prosemirror/dirty-plugin.d.mts +1 -1
  359. package/src/foundry/common/prosemirror/dom-parser.d.mts +1 -1
  360. package/src/foundry/common/prosemirror/highlight-matches-plugin.d.mts +1 -1
  361. package/src/foundry/common/prosemirror/image-plugin.d.mts +1 -1
  362. package/src/foundry/common/prosemirror/paste-transformer.d.mts +1 -1
  363. package/src/foundry/common/prosemirror/plugin.d.mts +1 -1
  364. package/src/foundry/common/types.d.mts +1 -1
  365. package/src/foundry/common/utils/bitmask.d.mts +1 -1
  366. package/src/foundry/common/utils/collection.d.mts +1 -1
  367. package/src/foundry/common/utils/event-emitter.d.mts +1 -1
  368. package/src/foundry/common/utils/helpers.d.mts +1 -1
  369. package/src/foundry/public/scripts/clipper/clipper.d.mts +1 -1
  370. package/src/types/augments/particles.d.mts +1 -1
  371. package/src/types/augments/pixi.d.mts +1 -1
  372. package/src/types/augments/smooth.d.mts +1 -1
  373. package/src/types/augments/tinyMCE.d.mts +1 -1
  374. package/src/types/config.d.mts +2 -5
  375. package/src/types/documentConfiguration.d.mts +1 -1
  376. package/src/types/lib.d.mts +1 -1
  377. package/src/types/workers/image-compressor.d.mts +1 -1
@@ -1,4 +1,4 @@
1
- import type { Identity, InexactPartial, Merge } from "fvtt-types/utils";
1
+ import type { AnyObject, Identity, IntentionalPartial, Merge, NullishProps } from "#utils";
2
2
  import type { documents } from "../../../client-esm/client.d.mts";
3
3
  import type { DatabaseGetOperation } from "../../../common/abstract/_types.d.mts";
4
4
  import type Document from "../../../common/abstract/document.d.mts";
@@ -114,7 +114,7 @@ declare global {
114
114
  type Collection = FogExplorations.Configured;
115
115
 
116
116
  /**
117
- * An instance of `FogExploration` that comes from the database but failed validation meaining that
117
+ * An instance of `FogExploration` that comes from the database but failed validation meaning that
118
118
  * its `system` and `_source` could theoretically be anything.
119
119
  */
120
120
  interface Invalid extends Document.Invalid<FogExploration.Implementation> {}
@@ -210,7 +210,7 @@ declare global {
210
210
  * The timestamp at which this fog exploration was last updated
211
211
  * @defaultValue `Date.now()`
212
212
  */
213
- timestamp: fields.NumberField<{ nullable: false; initial: ReturnType<typeof Date.now> }>;
213
+ timestamp: fields.NumberField<{ nullable: false; initial: typeof Date.now }>;
214
214
 
215
215
  /**
216
216
  * An object of optional key/value flags
@@ -376,6 +376,28 @@ declare global {
376
376
  * @deprecated {@link FogExploration.Implementation | `FogExploration.Implementation`}
377
377
  */
378
378
  type ConfiguredInstance = Implementation;
379
+
380
+ /** @internal */
381
+ type _LoadQuery = NullishProps<{
382
+ /**
383
+ * A certain Scene ID
384
+ * @defaultValue `canvas.scene`
385
+ */
386
+ scene: string;
387
+
388
+ /**
389
+ * A certain User ID
390
+ * @defaultValue `game.user`
391
+ */
392
+ user: string;
393
+ }>;
394
+ interface LoadQuery extends _LoadQuery {}
395
+
396
+ /**
397
+ * @remarks {@link FogExploration.load | `FogExploration#load`} takes the `query` property separately as its first argument, then merges that
398
+ * with this interface via `{query, ...options}` before passing to {@link ClientDatabaseBackend.get | `this.database.get`}
399
+ */
400
+ interface LoadOptions extends Omit<IntentionalPartial<DatabaseGetOperation>, "query"> {}
379
401
  }
380
402
 
381
403
  /**
@@ -391,18 +413,13 @@ declare global {
391
413
  /**
392
414
  * Obtain the fog of war exploration progress for a specific Scene and User.
393
415
  * @param query - Parameters for which FogExploration document is retrieved
394
- * @param options - Additional options passed to DatabaseBackend#get.
395
- * (default: `{}`)
416
+ * @param options - Additional options passed to DatabaseBackend#get. (default: `{}`)
396
417
  * @returns
397
418
  */
419
+ // query: not null (destructured)
398
420
  static load(
399
- query?: InexactPartial<{
400
- /** A certain Scene ID **/
401
- scene: string;
402
- /** A certain User ID **/
403
- user: string;
404
- }>,
405
- options?: InexactPartial<DatabaseGetOperation>,
421
+ query?: FogExploration.LoadQuery,
422
+ options?: FogExploration.LoadOptions | null,
406
423
  ): Promise<FogExploration.Implementation | null>;
407
424
 
408
425
  /**
@@ -410,9 +427,27 @@ declare global {
410
427
  */
411
428
  getTexture(): PIXI.Texture | null;
412
429
 
430
+ // _onCreate, _onUpdate, and _onDelete are all overridden but with no signature changes from BaseFogExploration.
431
+
432
+ static override get(
433
+ documentId: string,
434
+ options?: FogExploration.Database.GetOptions,
435
+ ): FogExploration.Implementation | null;
436
+
437
+ /**
438
+ * @deprecated since v12, will be removed in v14
439
+ * @remarks "You are calling `FogExploration.get` by passing an object. This means you are probably trying to load Fog of War exploration data, an operation which has been renamed to {@link FogExploration.load | `FogExploration.load`}"
440
+ */
441
+ static override get(
442
+ query: FogExploration.LoadQuery,
443
+ options: FogExploration.LoadOptions,
444
+ ): Promise<FogExploration.Implementation | null>;
445
+
413
446
  /**
414
- * @privateRemarks _onCreate, _onUpdate, and _onDelete are all overridden but with no signature changes from BaseFogExploration.
447
+ * @deprecated since v11, until v13
448
+ * @remarks "`explore` is obsolete and always returns `true`. The fog exploration does not record position anymore."
415
449
  */
450
+ explore(source: unknown, force?: boolean): true;
416
451
 
417
452
  /*
418
453
  * After this point these are not really overridden methods.
@@ -428,22 +463,27 @@ declare global {
428
463
 
429
464
  // Descendant Document operations have been left out because FogExploration does not have any descendant documents.
430
465
 
431
- static override defaultName(context?: Document.DefaultNameContext<string, FogExploration.Parent>): string;
466
+ // context: not null (destructured)
467
+ static override defaultName(context?: Document.DefaultNameContext<"FogExploration", FogExploration.Parent>): string;
432
468
 
469
+ // data: not null (parameter default only), context: not null (destructured)
433
470
  static override createDialog(
434
471
  data?: FogExploration.CreateData,
435
- context?: Document.CreateDialogContext<string, FogExploration.Parent>,
472
+ context?: Document.CreateDialogContext<"FogExploration", FogExploration.Parent>,
436
473
  ): Promise<FogExploration.Stored | null | undefined>;
437
474
 
475
+ // options: not null (parameter default only)
438
476
  static override fromDropData(
439
477
  data: Document.DropData<FogExploration.Implementation>,
440
- options?: Document.FromDropDataOptions,
478
+ options?: AnyObject,
441
479
  ): Promise<FogExploration.Implementation | undefined>;
442
480
 
443
481
  static override fromImport(
444
482
  source: FogExploration.Source,
445
- context?: Document.FromImportContext<FogExploration.Parent>,
483
+ context?: Document.FromImportContext<FogExploration.Parent> | null,
446
484
  ): Promise<FogExploration.Implementation>;
485
+
486
+ override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
447
487
  }
448
488
 
449
489
  namespace FogExploration {
@@ -1,5 +1,5 @@
1
1
  import type { ConfiguredFolder } from "../../../../configuration/index.d.mts";
2
- import type { InexactPartial, Merge } from "fvtt-types/utils";
2
+ import type { AnyObject, InexactPartial, IntentionalPartial, Merge, NullishProps } from "#utils";
3
3
  import type Document from "../../../common/abstract/document.d.mts";
4
4
  import type { DataSchema } from "../../../common/data/fields.d.mts";
5
5
  import type { fields } from "../../../common/data/module.d.mts";
@@ -145,7 +145,7 @@ declare global {
145
145
  type Collection = Folders.Configured;
146
146
 
147
147
  /**
148
- * An instance of `Folder` that comes from the database but failed validation meaining that
148
+ * An instance of `Folder` that comes from the database but failed validation meaning that
149
149
  * its `system` and `_source` could theoretically be anything.
150
150
  */
151
151
  interface Invalid<out SubType extends Folder.SubType = Folder.SubType> extends Document.Invalid<OfType<SubType>> {}
@@ -214,9 +214,10 @@ declare global {
214
214
  _id: fields.DocumentIdField;
215
215
 
216
216
  /** The name of this Folder */
217
- name: fields.StringField<{ required: true; blank: false; textSearch: true }>;
217
+ // FIXME: This field is `required` with no `initial`, so actually required for construction; Currently an AssignmentType override is required to enforce this
218
+ name: fields.StringField<{ required: true; blank: false; textSearch: true }, string>;
218
219
 
219
- /** The document type which this Folder contains, from CONST.FOLDER_DOCUMENT_TYPES */
220
+ /** The document type which this Folder contains, from {@linkcode CONST.FOLDER_DOCUMENT_TYPES} */
220
221
  type: fields.DocumentTypeField<typeof BaseFolder>;
221
222
 
222
223
  /**
@@ -413,12 +414,74 @@ declare global {
413
414
  /**
414
415
  * Actual document types that go in folders
415
416
  */
416
- type DocumentType = Exclude<foundry.CONST.FOLDER_DOCUMENT_TYPES, "Compendium">;
417
+ type DocumentType = Exclude<CONST.FOLDER_DOCUMENT_TYPES, "Compendium">;
417
418
 
418
- interface ExportToCompendiumOptions {
419
- /** Update existing entries in the Compendium pack, matching by name */
420
- updateByName?: boolean | undefined;
421
- }
419
+ type DocumentCollection<Type extends SubType> = Type extends "Compendium"
420
+ ? Collection.Any | undefined
421
+ : WorldCollection.Any;
422
+
423
+ /** @internal */
424
+ type _ExportToCompendiumOptions = NullishProps<{
425
+ /**
426
+ * Update existing entries in the Compendium pack, matching by name
427
+ * @defaultValue `false`
428
+ */
429
+ updateByName: boolean;
430
+
431
+ /**
432
+ * Retain the original _id attribute when updating an entity
433
+ * @defaultValue `false`
434
+ * @remarks No default applied despite Foundry's typing, but `undefined` will be treated falsily
435
+ */
436
+ keepId: boolean;
437
+
438
+ /**
439
+ * Retain the existing Folder structure
440
+ * @defaultValue `false`
441
+ * @remarks No default applied despite Foundry's typing, but `undefined` will be treated falsily
442
+ */
443
+ keepFolders: boolean;
444
+
445
+ /**
446
+ * A target folder id to which the documents will be exported
447
+ * @defaultValue `null`
448
+ */
449
+ folder: string;
450
+ }>;
451
+
452
+ /** @privateRemarks `keepId` omitted to override comment */
453
+ interface ExportToCompendiumOptions
454
+ extends _ExportToCompendiumOptions,
455
+ Omit<ClientDocument.ToCompendiumOptions, "keepId"> {}
456
+
457
+ /** @internal */
458
+ type _ExportDialogOptions = NullishProps<{
459
+ /**
460
+ * @remarks A compendium to preselect in the dialog
461
+ * @defaultValue `null`
462
+ */
463
+ pack: string;
464
+
465
+ /**
466
+ * @remarks Initial state of the `Merge by Name` checkbox in the dialog
467
+ * @defaultValue `true`
468
+ */
469
+ merge: boolean;
470
+
471
+ /**
472
+ * @remarks Initial state of the `Keep Document IDs` checkbox in the dialog
473
+ * @defaultValue `true`
474
+ */
475
+ keepId: boolean;
476
+
477
+ /**
478
+ * @remarks Initial state of the `Keep Folder Structure` checkbox in the dialog
479
+ * @defaultValue `true`
480
+ */
481
+ keepFolders: boolean;
482
+ }>;
483
+
484
+ interface ExportDialogOptions extends _ExportDialogOptions, IntentionalPartial<Dialog.Options> {}
422
485
 
423
486
  // TODO: Handle compendium. This requires the index to be configured.
424
487
  type Contents<SubType extends Folder.SubType> = Document.ImplementationFor<Extract<SubType, Document.Type>>[];
@@ -427,6 +490,16 @@ declare global {
427
490
  type DocumentClass<SubType extends Folder.SubType> = Document.ImplementationClassFor<
428
491
  Extract<SubType, Document.Type>
429
492
  >;
493
+
494
+ /**
495
+ * @remarks Rather than a simple `Dialog`, {@link Folder.createDialog | `Folder.createDialog`} creates a {@link FolderConfig | `FolderConfig`},
496
+ * passing along the returned `Promise`'s `resolve` to the app.
497
+ */
498
+ // TODO (v13): `options.document` is also force set
499
+ interface CreateDialogOptions extends InexactPartial<Omit<FolderConfig.Options, "resolve">> {
500
+ /** @deprecated This is force set to the `resolve` of the Promise returned by this `createDialog` call */
501
+ resolve?: never;
502
+ }
430
503
  }
431
504
 
432
505
  /**
@@ -449,14 +522,18 @@ declare global {
449
522
  *
450
523
  * @remarks For folders that have been populated by the {@link SidebarDirectory | `SidebarDirectory`}, this is always be defined
451
524
  */
452
- depth?: number;
525
+ depth: number | undefined;
453
526
 
454
527
  /**
455
528
  * An array of other Folders which are the displayed children of this one. This differs from the results of
456
- * {@link Folder.getSubfolders | `Folder.getSubfolders`} because reports the subset of child folders which are displayed to the current User
457
- * in the UI.
529
+ * {@link Folder.getSubfolders | `Folder#getSubfolders`} because reports the subset of child folders which
530
+ * are displayed to the current User in the UI.
531
+ * @remarks Despite Foundry's typing, this is not an array of Folder documents.
532
+ *
533
+ * Initialized by {@link DirectoryCollection.initializeTree | `DirectoryCollection#initializeTree`}, so always
534
+ * `undefined` in temporary documents, and prior to first UI render in stored documents
458
535
  */
459
- children: Folder.Implementation[];
536
+ children: DirectoryCollectionMixin.TreeNode<Folder.Implementation>[] | undefined;
460
537
 
461
538
  /**
462
539
  * Return whether the folder is displayed in the sidebar to the current User.
@@ -483,7 +560,8 @@ declare global {
483
560
  * A world Folder containing CompendiumCollections will have neither.
484
561
  */
485
562
  // TODO: Compendium Pack index
486
- get documentCollection(): this["pack"] extends string ? unknown : undefined;
563
+ // TODO: Infer specific world collection from SubType
564
+ get documentCollection(): Folder.DocumentCollection<SubType>;
487
565
 
488
566
  /**
489
567
  * Return whether the folder is currently expanded within the sidebar interface.
@@ -495,24 +573,24 @@ declare global {
495
573
  */
496
574
  get ancestors(): Folder.Implementation[];
497
575
 
498
- /**
499
- * @privateRemarks _preCreate overridden but with no signature changes.
500
- * For type simplicity it is left off. These methods historically have been the source of a large amount of computation from tsc.
501
- */
576
+ // _preCreate overridden but with no signature changes.
577
+ // For type simplicity it is left off. These methods historically have been the source of a large amount of computation from tsc.
502
578
 
579
+ /** @remarks Creates and renders a {@link FolderConfig | `FolderConfig`} instead of a simple Dialog */
580
+ // data, options: not null (parameter defaults only)
503
581
  static override createDialog(
504
582
  data?: Document.CreateDialogData<Folder.CreateData>,
505
- context?: InexactPartial<Omit<FolderConfig.Options, "resolve">>,
583
+ context?: Folder.CreateDialogOptions,
506
584
  ): Promise<Folder.Stored | null | undefined>;
507
585
 
508
586
  /**
509
587
  * Export all Documents contained in this Folder to a given Compendium pack.
510
588
  * Optionally update existing Documents within the Pack by name, otherwise append all new entries.
511
589
  * @param pack - A Compendium pack to which the documents will be exported
512
- * @param options - Additional options which customize how content is exported. See {@link ClientDocument.toCompendium | `ClientDocument#toCompendium`}
513
- * (default: `{}`)
590
+ * @param options - Additional options which customize how content is exported. See {@link ClientDocument.toCompendium | `ClientDocument#toCompendium`} (default: `{}`)
514
591
  * @returns The updated Compendium Collection instance
515
592
  */
593
+ // options: not null (parameter default only)
516
594
  exportToCompendium<Metadata extends CompendiumCollection.Metadata>(
517
595
  pack: CompendiumCollection<Metadata>,
518
596
  options?: Folder.ExportToCompendiumOptions,
@@ -521,22 +599,21 @@ declare global {
521
599
  /**
522
600
  * Provide a dialog form that allows for exporting the contents of a Folder into an eligible Compendium pack.
523
601
  * @param pack - A pack ID to set as the default choice in the select input
524
- * @param options - Additional options passed to the Dialog.prompt method
525
- * (default: `{}`)
602
+ * @param options - Additional options passed to the Dialog.prompt method (default: `{}`)
526
603
  * @returns A Promise which resolves or rejects once the dialog has been submitted or closed
527
604
  *
528
- * @remarks - Foundry documents `pack` as just being a `string` but it is unused and Foundry itself
605
+ * @remarks - Foundry documents `pack` as just being a `string` but it is unused in favor of `options.pack`, and Foundry itself
529
606
  * calls `exportDialog` with `null`.
530
607
  */
531
- exportDialog(pack: string | null, options?: Dialog.Options): Promise<void>;
608
+ // options: not null (parameter default only)
609
+ exportDialog(pack: string | null, options?: Folder.ExportDialogOptions): Promise<void>;
532
610
 
533
611
  /**
534
612
  * Get the Folder documents which are sub-folders of the current folder, either direct children or recursively.
535
- * @param recursive - Identify child folders recursively, if false only direct children are returned
536
- * (default: `false`)
613
+ * @param recursive - Identify child folders recursively, if false only direct children are returned (default: `false`)
537
614
  * @returns An array of Folder documents which are subfolders of this one
538
615
  */
539
- getSubfolders(recursive?: boolean): Folder.Implementation[];
616
+ getSubfolders(recursive?: boolean | null): Folder.Implementation[];
540
617
 
541
618
  /**
542
619
  * Get the Folder documents which are parent folders of the current folder or any if its parents.
@@ -558,16 +635,22 @@ declare global {
558
635
 
559
636
  // Descendant Document operations have been left out because Folder does not have any descendant documents.
560
637
 
561
- static override defaultName(context?: Document.DefaultNameContext<Folder.SubType, Folder.Parent>): string;
638
+ // context: not null (destructured)
639
+ static override defaultName(context?: Document.DefaultNameContext<"Folder", Folder.Parent>): string;
562
640
 
641
+ // options: not null (parameter default only)
563
642
  static override fromDropData(
564
643
  data: Document.DropData<Folder.Implementation>,
565
- options?: Document.FromDropDataOptions,
644
+ options?: AnyObject,
566
645
  ): Promise<Folder.Implementation | undefined>;
567
646
 
568
647
  static override fromImport(
569
648
  source: Folder.Source,
570
- context?: Document.FromImportContext<Folder.Parent>,
649
+ context?: Document.FromImportContext<Folder.Parent> | null,
571
650
  ): Promise<Folder.Implementation>;
651
+
652
+ override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
653
+
654
+ #Folder: true;
572
655
  }
573
656
  }
@@ -3,7 +3,7 @@ import type { documents } from "../../../client-esm/client.d.mts";
3
3
  import type Document from "../../../common/abstract/document.d.mts";
4
4
  import type { fields } from "../../../common/data/module.d.mts";
5
5
  import type { DataSchema } from "../../../common/data/fields.d.mts";
6
- import type { AnyObject, Merge } from "fvtt-types/utils";
6
+ import type { AnyObject, Merge } from "#utils";
7
7
 
8
8
  declare global {
9
9
  namespace Item {
@@ -223,7 +223,7 @@ declare global {
223
223
  type Collection = Items.Configured;
224
224
 
225
225
  /**
226
- * An instance of `Item` that comes from the database but failed validation meaining that
226
+ * An instance of `Item` that comes from the database but failed validation meaning that
227
227
  * its `system` and `_source` could theoretically be anything.
228
228
  */
229
229
  interface Invalid<out SubType extends Item.SubType = Item.SubType> extends Document.Invalid<OfType<SubType>> {}
@@ -292,9 +292,11 @@ declare global {
292
292
  _id: fields.DocumentIdField;
293
293
 
294
294
  /** The name of this Item */
295
- name: fields.StringField<{ required: true; blank: false; textSearch: true }>;
295
+ // FIXME: required with no initial, assignment type override required
296
+ name: fields.StringField<{ required: true; blank: false; textSearch: true }, string>;
296
297
 
297
298
  /** An Item subtype which configures the system data model applied */
299
+ // TODO: required with no initial, needs assignment type override
298
300
  type: fields.DocumentTypeField<typeof documents.BaseItem>;
299
301
 
300
302
  /**
@@ -302,7 +304,7 @@ declare global {
302
304
  * @defaultValue `null`
303
305
  */
304
306
  img: fields.FilePathField<{
305
- categories: "IMAGE"[];
307
+ categories: ["IMAGE"];
306
308
  initial: (data: unknown) => string;
307
309
  }>;
308
310
 
@@ -507,6 +509,11 @@ declare global {
507
509
  Item.Metadata.Embedded
508
510
  >;
509
511
 
512
+ interface GetDefaultArtworkReturn {
513
+ /** @defaultValue `Item.DEFAULT_ICON` */
514
+ img: string;
515
+ }
516
+
510
517
  /**
511
518
  * @deprecated {@link Item.Database | `Item.DatabaseOperation`}
512
519
  */
@@ -556,23 +563,23 @@ declare global {
556
563
  /**
557
564
  * A convenience alias of Item#parent which is more semantically intuitive
558
565
  */
559
- get actor(): this["parent"];
566
+ get actor(): Actor.Implementation | null;
560
567
 
561
568
  /**
562
569
  * Provide a thumbnail image path used to represent this document.
563
570
  */
564
- get thumbnail(): this["img"];
571
+ get thumbnail(): string;
565
572
 
566
573
  /**
567
574
  * A convenience alias of Item#isEmbedded which is preserves legacy support
568
575
  */
569
- get isOwned(): this["isEmbedded"];
576
+ get isOwned(): boolean;
570
577
 
571
578
  /**
572
579
  * Return an array of the Active Effect instances which originated from this Item.
573
580
  * The returned instances are the ActiveEffect instances which exist on the Item itself.
574
581
  */
575
- get transferredEffects(): ReturnType<this["effects"]["filter"]>;
582
+ get transferredEffects(): ActiveEffect.Implementation[];
576
583
 
577
584
  /**
578
585
  * Prepare a data object which defines the data schema used by dice roll commands against this Item
@@ -580,9 +587,7 @@ declare global {
580
587
  */
581
588
  getRollData(): AnyObject;
582
589
 
583
- /**
584
- * @privateRemarks _preCreate, _onCreateDocuments and _onDeleteDocuments are all overridden but with no signature changes from BaseItem.
585
- */
590
+ // _preCreate, _onCreateOperation and _onDeleteOperation are all overridden but with no signature changes from BaseItem.
586
591
 
587
592
  /*
588
593
  * After this point these are not really overridden methods.
@@ -598,7 +603,7 @@ declare global {
598
603
 
599
604
  /**
600
605
  * @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
601
- * this method must be overriden like so:
606
+ * this method must be overridden like so:
602
607
  * ```typescript
603
608
  * class SwadeItem extends Item {
604
609
  * protected override _preCreateDescendantDocuments(...args: Item.PreCreateDescendantDocumentsArgs) {
@@ -616,7 +621,7 @@ declare global {
616
621
 
617
622
  /**
618
623
  * @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
619
- * this method must be overriden like so:
624
+ * this method must be overridden like so:
620
625
  * ```typescript
621
626
  * class GurpsItem extends Item {
622
627
  * protected override _onCreateDescendantDocuments(...args: Item.OnCreateDescendantDocumentsArgs) {
@@ -634,7 +639,7 @@ declare global {
634
639
 
635
640
  /**
636
641
  * @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
637
- * this method must be overriden like so:
642
+ * this method must be overridden like so:
638
643
  * ```typescript
639
644
  * class LancerItem extends Item {
640
645
  * protected override _preUpdateDescendantDocuments(...args: Item.OnUpdateDescendantDocuments) {
@@ -652,7 +657,7 @@ declare global {
652
657
 
653
658
  /**
654
659
  * @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
655
- * this method must be overriden like so:
660
+ * this method must be overridden like so:
656
661
  * ```typescript
657
662
  * class Ptr2eItem extends Item {
658
663
  * protected override _onUpdateDescendantDocuments(...args: Item.OnUpdateDescendantDocumentsArgs) {
@@ -670,7 +675,7 @@ declare global {
670
675
 
671
676
  /**
672
677
  * @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
673
- * this method must be overriden like so:
678
+ * this method must be overridden like so:
674
679
  * ```typescript
675
680
  * class KultItem extends Item {
676
681
  * protected override _preDeleteDescendantDocuments(...args: Item.PreDeleteDescendantDocumentsArgs) {
@@ -688,7 +693,7 @@ declare global {
688
693
 
689
694
  /**
690
695
  * @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
691
- * this method must be overriden like so:
696
+ * this method must be overridden like so:
692
697
  * ```typescript
693
698
  * class BladesItem extends Item {
694
699
  * protected override _onDeleteDescendantDocuments(...args: Item.OnUpdateDescendantDocuments) {
@@ -704,21 +709,26 @@ declare global {
704
709
  */
705
710
  protected override _onDeleteDescendantDocuments(...args: Item.OnDeleteDescendantDocumentsArgs): void;
706
711
 
707
- static override defaultName(context?: Document.DefaultNameContext<Item.SubType, Item.Parent>): string;
712
+ // context: not null (destructured)
713
+ static override defaultName(context?: Document.DefaultNameContext<"Item", Item.Parent>): string;
708
714
 
715
+ // data: not null (parameter default only), context: not null (destructured)
709
716
  static override createDialog(
710
717
  data?: Document.CreateDialogData<Item.CreateData>,
711
- context?: Document.CreateDialogContext<Item.SubType, Item.Parent>,
718
+ context?: Document.CreateDialogContext<"Item", Item.Parent>,
712
719
  ): Promise<Item.Stored | null | undefined>;
713
720
 
721
+ // options: not null (parameter default only)
714
722
  static override fromDropData(
715
723
  data: Document.DropData<Item.Implementation>,
716
- options?: Document.FromDropDataOptions,
724
+ options?: AnyObject,
717
725
  ): Promise<Item.Implementation | undefined>;
718
726
 
719
727
  static override fromImport(
720
728
  source: Item.Source,
721
- context?: Document.FromImportContext<Item.Parent>,
729
+ context?: Document.FromImportContext<Item.Parent> | null,
722
730
  ): Promise<Item.Implementation>;
731
+
732
+ override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
723
733
  }
724
734
  }