@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,5 +1,5 @@
1
1
  import type { ConfiguredCards } from "../../../../configuration/index.d.mts";
2
- import type { DeepPartial, InexactPartial, Merge } from "fvtt-types/utils";
2
+ import type { AnyObject, InexactPartial, Merge, NullishProps } from "#utils";
3
3
  import type { documents } from "../../../client-esm/client.d.mts";
4
4
  import type Document from "../../../common/abstract/document.d.mts";
5
5
  import type { DataSchema } from "../../../common/data/fields.d.mts";
@@ -217,7 +217,7 @@ declare global {
217
217
  type Collection = CardStacks.Configured;
218
218
 
219
219
  /**
220
- * An instance of `Cards` that comes from the database but failed validation meaining that
220
+ * An instance of `Cards` that comes from the database but failed validation meaning that
221
221
  * its `system` and `_source` could theoretically be anything.
222
222
  */
223
223
  interface Invalid<out SubType extends Cards.SubType = Cards.SubType> extends Document.Invalid<OfType<SubType>> {}
@@ -286,12 +286,14 @@ declare global {
286
286
  _id: fields.DocumentIdField;
287
287
 
288
288
  /** The text name of this stack */
289
- name: fields.StringField<{ required: true; blank: false; label: "CARDS.Name"; textSearch: true }>;
289
+ // FIXME: This field is `required` with no `initial`, so actually required for construction; Currently an AssignmentType override is required to enforce this
290
+ name: fields.StringField<{ required: true; blank: false; label: "CARDS.Name"; textSearch: true }, string>;
290
291
 
291
292
  /**
292
293
  * The type of this stack, in BaseCards.metadata.types
293
294
  * @defaultValue `BaseCards.TYPES[0]`
294
295
  */
296
+ // TODO: type is required at construction, no "base" allowed
295
297
  type: fields.DocumentTypeField<typeof BaseCards>;
296
298
 
297
299
  /**
@@ -541,125 +543,148 @@ declare global {
541
543
  Cards.Metadata.Embedded
542
544
  >;
543
545
 
544
- type CardsAction = "deal" | "pass";
546
+ /**
547
+ * @remarks Passing anything else errors downstream when a lookup table lacking the provided key causes
548
+ * {@link Cards._postChatNotification | `Cards#_postChatNotification`} to call {@link Localization.format | `game.i18n.format`}
549
+ * with an `undefined` first argument
550
+ */
551
+ type DealAction = "deal" | "pass";
552
+
553
+ /**
554
+ * @remarks Passing anything else errors downstream when a lookup table lacking the provided key causes
555
+ * {@link Cards._postChatNotification | `Cards#_postChatNotification`} to call {@link Localization.format | `game.i18n.format`}
556
+ * with an `undefined` first argument
557
+ */
558
+ type PassAction = "pass" | "play" | "draw" | "discard";
545
559
 
546
- interface BaseOperationOptions {
560
+ /** @internal */
561
+ type _ChatNotificationOption = NullishProps<{
547
562
  /**
548
563
  * Create a ChatMessage which notifies that this action has occurred
549
564
  * @defaultValue `true`
550
565
  */
551
- chatNotification: boolean | undefined;
552
- }
566
+ chatNotification: boolean;
567
+ }>;
553
568
 
554
- interface DealOptions extends BaseOperationOptions {
569
+ /**
570
+ * @internal Omitting one word from the different descriptions in various methods' JSDocs lets
571
+ * this be a reusable property
572
+ */
573
+ type _UpdateDataOption = InexactPartial<{
555
574
  /**
556
- * How to draw, a value from CONST.CARD_DRAW_MODES
557
- * @defaultValue `foundry.CONST.CARD_DRAW_MODES.FIRST`
575
+ * Modifications to make to each Card as part of the [...] operation, for example the displayed face
576
+ * @defaultValue `{}`
577
+ * @remarks Can't be `null` as it only has a parameter default
558
578
  */
559
- how: foundry.CONST.CARD_DRAW_MODES;
579
+ updateData: Card.UpdateData;
580
+ }>;
560
581
 
582
+ type _HowOption = InexactPartial<{
561
583
  /**
562
- * Modifications to make to each Card as part of the deal operation,
563
- * for example the displayed face
564
- * @defaultValue `{}`
584
+ * How to draw, a value from CONST.CARD_DRAW_MODES
585
+ * @defaultValue `CONST.CARD_DRAW_MODES.FIRST`
586
+ * @remarks Can't be `null` as it only has a parameter default
565
587
  */
566
- updateData: DeepPartial<Cards.Implementation["_source"]>;
588
+ how: CONST.CARD_DRAW_MODES;
589
+ }>;
567
590
 
591
+ /** @internal */
592
+ type _DealOptions = InexactPartial<{
568
593
  /**
569
594
  * The name of the action being performed, used as part of the dispatched Hook event
570
595
  * @defaultValue `"deal"`
596
+ * @remarks Can't be `null` as it only has a parameter default. See {@linkcode Cards.DealAction}
571
597
  */
572
- action: CardsAction;
573
- }
598
+ action: DealAction;
599
+ }>;
574
600
 
575
- /** Additional context which describes the operation */
576
- interface DealContext {
577
- /** The action name being performed, i.e. "deal", "pass" */
578
- action: CardsAction;
579
-
580
- /** An array of Card creation operations to be performed in each destination Cards document */
581
- toCreate: Card.Implementation["_source"][][];
582
-
583
- /** Card update operations to be performed in the origin Cards document */
584
- fromUpdate: { _id: string; drawn: true }[];
585
-
586
- /** Card deletion operations to be performed in the origin Cards document */
587
- fromDelete: string[];
588
- }
601
+ interface DealOptions extends _DealOptions, _HowOption, _UpdateDataOption, _ChatNotificationOption {}
589
602
 
590
- interface PassOptions extends BaseOperationOptions {
603
+ /**
604
+ * Additional context which describes the operation
605
+ * @remarks This is the context provided to the {@link Hooks.StaticCallbacks.dealCards | `dealCards`} hook
606
+ */
607
+ interface DealContext {
591
608
  /**
592
- * Modifications to make to each Card as part of the pass operation,
593
- * for example the displayed face
594
- * @defaultValue `{}`
609
+ * The action name being performed, i.e. "deal", "pass"
610
+ * @remarks See {@linkcode Cards.DealAction}
595
611
  */
596
- updateData: DeepPartial<Card.Implementation["_source"]> | undefined;
612
+ action: DealAction;
597
613
 
598
614
  /**
599
- * The name of the action being performed, used as part of the dispatched Hook event
600
- * @defaultValue `"pass"`
615
+ * An array of Card creation operations to be performed in each destination Cards document
616
+ * @remarks Outer array: one element per `to` provided to this {@link Cards.deal | `Cards#deal`} call
601
617
  */
602
- action: string | undefined;
618
+ toCreate: Card.CreateData[][];
603
619
 
604
620
  /**
605
- * Create a ChatMessage which notifies that this action has occurred
606
- * @defaultValue `true`
621
+ * Card update operations to be performed in the origin Cards document
622
+ * @remarks Core will only ever provide elements of `{ _id: string; drawn: true}`
607
623
  */
608
- chatNotification: boolean | undefined;
609
- }
624
+ fromUpdate: Card.UpdateData[];
610
625
 
611
- interface DrawOptions extends PassOptions {
612
626
  /**
613
- * How to draw, a value from CONST.CARD_DRAW_MODES
614
- * @defaultValue `foundry.CONST.CARD_DRAW_MODES.FIRST`
627
+ * Card deletion operations to be performed in the origin Cards document
628
+ * @remarks An array of `_id`s
615
629
  */
616
- how: foundry.CONST.CARD_DRAW_MODES;
630
+ fromDelete: string[];
631
+ }
617
632
 
633
+ /** @internal */
634
+ type _PassOptions = InexactPartial<{
618
635
  /**
619
- * Modifications to make to each Card as part of the draw operation,
620
- * for example the displayed face
621
- * @defaultValue `{}`
636
+ * The name of the action being performed, used as part of the dispatched Hook event
637
+ * @defaultValue `"pass"`
638
+ * @remarks Can't be `null` as it only has a parameter default. See {@linkcode PassAction}
622
639
  */
623
- updateData: DeepPartial<Card.Implementation["_source"]>;
624
- }
640
+ action: PassAction;
641
+ }>;
642
+
643
+ interface PassOptions extends _PassOptions, _UpdateDataOption, _ChatNotificationOption {}
625
644
 
626
- interface ShuffleOptions extends BaseOperationOptions {
645
+ /**
646
+ * Additional context which describes the operation
647
+ * @remarks This is the context provided to the {@link Hooks.StaticCallbacks.passCards | `passCards`} hook
648
+ */
649
+ interface PassContext extends Pick<DealContext, "fromUpdate" | "fromDelete"> {
627
650
  /**
628
- * Modifications to make to each Card as part of the shuffle operation,
629
- * for example the displayed face
630
- * @defaultValue `{}`
651
+ * The action name being performed, i.e. "pass", "play", "discard", "draw"
652
+ * @remarks See {@linkcode Cards.PassAction}
631
653
  */
632
- updateData: DeepPartial<Card.Implementation["_source"]>;
654
+ action: PassAction;
633
655
 
634
- /** Create a ChatMessage which notifies that this action has occurred
635
- * @defaultValue `true`
656
+ /**
657
+ * Card creation operations to be performed in the destination Cards document
636
658
  */
637
- chatNotification: boolean | undefined;
638
- }
659
+ toCreate: Card.CreateData[];
639
660
 
640
- /** Options which modify the reset operation */
641
- interface ResetOptions extends BaseOperationOptions {
642
661
  /**
643
- * Modifications to make to each Card as part of the reset operation,
644
- * for example the displayed face
645
- * @defaultValue `{}`
662
+ * Card update operations to be performed in the destination Cards document
663
+ * @remarks Core will only ever provide elements of `{ _id: string; drawn: false }`
646
664
  */
647
- updateData: DeepPartial<Card.Implementation["_source"]>;
665
+ toUpdate: Card.UpdateData[];
648
666
  }
649
667
 
650
- /** Additional context which describes the operation. */
651
- interface ReturnContext {
652
- /**
653
- * A mapping of Card deck IDs to the update operations that
654
- * will be performed on them.
655
- */
656
- toUpdate: Record<string, DeepPartial<Card.Implementation["_source"]>[]>;
668
+ /**
669
+ * @remarks {@link Cards.draw | `Cards#draw`} spreads this into an object, minus `how`, with the `action` preset to `"draw"`,
670
+ * which wouldn't make sense to change, then passes that to {@link Cards.pass | `Cards#pass`}
671
+ * @privateRemarks `action` omitted as it's already provided.
672
+ */
673
+ interface DrawOptions extends _HowOption, Omit<PassOptions, "action"> {}
674
+
675
+ interface ShuffleOptions extends _UpdateDataOption, _ChatNotificationOption {}
676
+
677
+ interface RecallOptions extends _UpdateDataOption, _ChatNotificationOption {}
657
678
 
679
+ /**
680
+ * Additional context which describes the operation.
681
+ * @remarks This is the context provided to the {@link Hooks.StaticCallbacks.returnCards | `returnCards`} hook
682
+ */
683
+ interface ReturnContext extends Pick<DealContext, "fromDelete"> {
658
684
  /**
659
- * Card deletion operations to be performed on the origin Cards
660
- * document.
685
+ * A mapping of Card deck IDs to the update operations that will be performed on them.
661
686
  */
662
- fromDelete: string[];
687
+ toUpdate: Record<string, Card.UpdateData[]>;
663
688
  }
664
689
 
665
690
  /**
@@ -708,7 +733,7 @@ declare global {
708
733
  /**
709
734
  * Provide a thumbnail image path used to represent this document.
710
735
  */
711
- get thumbnail(): this["img"];
736
+ get thumbnail(): string | null;
712
737
 
713
738
  /**
714
739
  * The Card documents within this stack which are able to be drawn.
@@ -730,74 +755,80 @@ declare global {
730
755
  */
731
756
  get canClone(): boolean;
732
757
 
758
+ /**
759
+ * @remarks Sets `context.keepEmbeddedIds` to `false` if it's `=== undefined`
760
+ */
761
+ static override createDocuments<Temporary extends boolean | undefined = false>(
762
+ data: Array<Cards.Implementation | Cards.CreateData> | undefined,
763
+ operation?: Document.Database.CreateOperation<Cards.Database.Create<Temporary>>,
764
+ ): Promise<Array<Document.TemporaryIf<Cards.Implementation, Temporary>>>;
765
+
733
766
  /**
734
767
  * Deal one or more cards from this Cards document to each of a provided array of Cards destinations.
735
768
  * Cards are allocated from the top of the deck in cyclical order until the required number of Cards have been dealt.
736
769
  * @param to - An array of other Cards documents to which cards are dealt
737
- * @param number - The number of cards to deal to each other document
738
- * (default: `1`)
739
- * @param options - (default: `{}`)
770
+ * @param number - The number of cards to deal to each other document (default: `1`)
771
+ * @param options - Options which modify how the deal operation is performed (default: `{}`)
740
772
  * @returns This Cards document after the deal operation has completed
741
773
  */
742
- deal(
743
- to: Cards.Implementation[],
744
- number?: number,
745
- options?: InexactPartial<Cards.DealOptions>,
746
- ): Promise<Cards.Implementation>;
774
+ // number: not null (dealing 0 cards makes no sense), options: not null (destructured)
775
+ deal(to: Cards.Implementation[], number?: number, options?: Cards.DealOptions): Promise<Cards.Implementation>;
747
776
 
748
777
  /**
749
778
  * Pass an array of specific Card documents from this document to some other Cards stack.
750
779
  * @param to - Some other Cards document that is the destination for the pass operation
751
780
  * @param ids - The embedded Card ids which should be passed
752
- * @param options - Additional options which modify the pass operation
753
- * (default: `{}`)
781
+ * @param options - Additional options which modify the pass operation (default: `{}`)
754
782
  * @returns An array of the Card embedded documents created within the destination stack
755
783
  */
756
- pass(
757
- to: Cards.Implementation,
758
- ids: string[],
759
- options?: InexactPartial<Cards.PassOptions>,
760
- ): Promise<Card.Implementation[]>;
784
+ // options: not null (destructured)
785
+ pass(to: Cards.Implementation, ids: string[], options?: Cards.PassOptions): Promise<Card.Implementation[]>;
761
786
 
762
787
  /**
763
788
  * Draw one or more cards from some other Cards document.
764
789
  * @param from - Some other Cards document from which to draw
765
- * @param number - The number of cards to draw
766
- * (default: `1`)
767
- * @param options - (default: `{}`)
790
+ * @param number - The number of cards to draw (default: `1`)
791
+ * @param options - Options which modify how the draw operation is performed (default: `{}`)
768
792
  * @returns An array of the Card documents which were drawn
769
793
  */
770
- draw(
771
- from: Cards.Implementation,
772
- number?: number,
773
- options?: InexactPartial<Cards.DrawOptions>,
774
- ): Promise<Card.Implementation[]>;
794
+ // number: not null (drawing 0 cards makes no sense), options: not null (destructured)
795
+ draw(from: Cards.Implementation, number?: number, options?: Cards.DrawOptions): Promise<Card.Implementation[]>;
775
796
 
776
797
  /**
777
798
  * Shuffle this Cards stack, randomizing the sort order of all the cards it contains.
778
- * @param options - (default: `{}`)
799
+ * @param options - Options which modify how the shuffle operation is performed. (default: `{}`)
779
800
  * @returns The Cards document after the shuffle operation has completed
780
801
  */
781
- shuffle(options?: InexactPartial<Cards.ShuffleOptions>): Promise<Cards.Implementation>;
802
+ // options: not null (destructured)
803
+ shuffle(options?: Cards.ShuffleOptions): Promise<this>;
804
+
805
+ /**
806
+ * Recall the Cards stack, retrieving all original cards from other stacks where they may have been drawn if this is a
807
+ * deck, otherwise returning all the cards in this stack to the decks where they originated.
808
+ * @param options - Options which modify the recall operation
809
+ * @returns The Cards document after the recall operation has completed.
810
+ */
811
+ // options: not null (destructured where forwarded)
812
+ recall(options?: Cards.RecallOptions): Promise<this>;
782
813
 
783
814
  /**
784
815
  * Perform a reset operation for a deck, retrieving all original cards from other stacks where they may have been
785
816
  * drawn.
786
- * @param options - Options which modify the reset operation.
787
- * (default: `{}`)
817
+ * @param options - Options which modify the reset operation. (default: `{}`)
788
818
  * @returns The Cards document after the reset operation has completed.
789
- * @internal
819
+ * @private
790
820
  */
791
- protected _resetDeck(options?: InexactPartial<Cards.ResetOptions>): Promise<Cards.Implementation>;
821
+ // options: not null (destructured)
822
+ protected _resetDeck(options?: Cards.RecallOptions): Promise<this>;
792
823
 
793
824
  /**
794
825
  * Return all cards in this stack to their original decks.
795
- * @param options - Options which modify the return operation.
796
- * (default: `{}`)
826
+ * @param options - Options which modify the return operation. (default: `{}`)
797
827
  * @returns The Cards document after the return operation has completed.
798
- * @internal
828
+ * @private
799
829
  */
800
- protected _resetStack(options?: InexactPartial<Cards.ResetOptions>): Promise<Cards.Implementation>;
830
+ // options: not null (destructured)
831
+ protected _resetStack(options?: InexactPartial<Cards.RecallOptions>): Promise<this>;
801
832
 
802
833
  /**
803
834
  * A sorting function that is used to determine the standard order of Card documents within an un-shuffled stack.
@@ -819,7 +850,7 @@ declare global {
819
850
  * @param how - A draw mode from CONST.CARD_DRAW_MODES
820
851
  * @returns An array of drawn Card documents
821
852
  */
822
- protected _drawCards(number: number, how: foundry.CONST.CARD_DRAW_MODES): Card.Implementation[];
853
+ protected _drawCards(number: number, how: CONST.CARD_DRAW_MODES): Card.Implementation[];
823
854
 
824
855
  /**
825
856
  * Create a ChatMessage which provides a notification of the cards operation which was just performed.
@@ -828,7 +859,7 @@ declare global {
828
859
  * @param action - The localization key which formats the chat message notification
829
860
  * @param context - Data passed to the i18n.format method for the localization key
830
861
  * @returns A created ChatMessage document
831
- * @internal
862
+ * @private
832
863
  */
833
864
  protected _postChatNotification(
834
865
  source: Cards.Implementation,
@@ -836,15 +867,13 @@ declare global {
836
867
  context: Record<string, unknown>,
837
868
  ): Promise<ChatMessage.Implementation | undefined>;
838
869
 
839
- /**
840
- * @privateRemarks _preCreate, _onUpdate, and _preDelete are all overridden but with no signature changes from BaseCards.
841
- */
870
+ // _preCreate, _onUpdate, and _preDelete are all overridden but with no signature changes from BaseCards.
842
871
 
843
872
  /**
844
873
  * Display a dialog which prompts the user to deal cards to some number of hand-type Cards documents.
845
874
  * @see {@link Cards.deal | `Cards#deal`}
846
875
  */
847
- dealDialog(): Promise<Cards.Implementation | null>;
876
+ dealDialog(): Promise<this | null>;
848
877
 
849
878
  /**
850
879
  * Display a dialog which prompts the user to draw cards from some other deck-type Cards documents.
@@ -856,22 +885,30 @@ declare global {
856
885
  * Display a dialog which prompts the user to pass cards from this document to some other other Cards document.
857
886
  * @see {@link Cards.deal | `Cards#deal`}
858
887
  */
859
- passDialog(): Promise<Cards.Implementation | null>;
888
+ passDialog(): Promise<this | null>;
860
889
 
861
890
  /**
862
891
  * Display a dialog which prompts the user to play a specific Card to some other Cards document
863
892
  * @see {@link Cards.pass | `Cards#pass`}
864
893
  * @param card - The specific card being played as part of this dialog
865
894
  */
866
- playDialog(card: Card.Implementation): Promise<Card.Implementation[] | void | null>;
895
+ playDialog(card: Card.Implementation): Promise<Card.Implementation[] | null>;
867
896
 
868
897
  /**
869
898
  * Display a confirmation dialog for whether or not the user wishes to reset a Cards stack
870
899
  * @see {@link Cards.reset | `Cards#reset`}
871
900
  */
872
- resetDialog(): Promise<Cards.Implementation | false | null>;
901
+ resetDialog(): Promise<this | false | null>;
873
902
 
874
- override deleteDialog(options?: Partial<Dialog.Options>): Promise<this | false | null | undefined>;
903
+ // options: not null (parameter default only)
904
+ override deleteDialog(options?: InexactPartial<Dialog.Options>): Promise<this | false | null | undefined>;
905
+
906
+ /** @remarks No type changes, just creates a fancier `Dialog` than `super` */
907
+ // data: not null (parameter default only), context: not null (destructured)
908
+ static override createDialog(
909
+ data?: Document.CreateDialogData<Cards.CreateData>,
910
+ context?: Document.CreateDialogContext<"Cards", Cards.Parent>,
911
+ ): Promise<Cards.Stored | null | undefined>;
875
912
 
876
913
  /*
877
914
  * After this point these are not really overridden methods.
@@ -887,7 +924,7 @@ declare global {
887
924
 
888
925
  /**
889
926
  * @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
890
- * this method must be overriden like so:
927
+ * this method must be overridden like so:
891
928
  * ```typescript
892
929
  * class SwadeCards extends Cards {
893
930
  * protected override _preCreateDescendantDocuments(...args: Cards.PreCreateDescendantDocumentsArgs) {
@@ -905,7 +942,7 @@ declare global {
905
942
 
906
943
  /**
907
944
  * @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
908
- * this method must be overriden like so:
945
+ * this method must be overridden like so:
909
946
  * ```typescript
910
947
  * class GurpsCards extends Cards {
911
948
  * protected override _onCreateDescendantDocuments(...args: Cards.OnCreateDescendantDocumentsArgs) {
@@ -923,7 +960,7 @@ declare global {
923
960
 
924
961
  /**
925
962
  * @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
926
- * this method must be overriden like so:
963
+ * this method must be overridden like so:
927
964
  * ```typescript
928
965
  * class LancerCards extends Cards {
929
966
  * protected override _preUpdateDescendantDocuments(...args: Cards.OnUpdateDescendantDocuments) {
@@ -941,7 +978,7 @@ declare global {
941
978
 
942
979
  /**
943
980
  * @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
944
- * this method must be overriden like so:
981
+ * this method must be overridden like so:
945
982
  * ```typescript
946
983
  * class Ptr2eCards extends Cards {
947
984
  * protected override _onUpdateDescendantDocuments(...args: Cards.OnUpdateDescendantDocumentsArgs) {
@@ -959,7 +996,7 @@ declare global {
959
996
 
960
997
  /**
961
998
  * @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
962
- * this method must be overriden like so:
999
+ * this method must be overridden like so:
963
1000
  * ```typescript
964
1001
  * class KultCards extends Cards {
965
1002
  * protected override _preDeleteDescendantDocuments(...args: Cards.PreDeleteDescendantDocumentsArgs) {
@@ -977,7 +1014,7 @@ declare global {
977
1014
 
978
1015
  /**
979
1016
  * @remarks To make it possible for narrowing one parameter to jointly narrow other parameters
980
- * this method must be overriden like so:
1017
+ * this method must be overridden like so:
981
1018
  * ```typescript
982
1019
  * class BladesCards extends Cards {
983
1020
  * protected override _onDeleteDescendantDocuments(...args: Cards.OnUpdateDescendantDocuments) {
@@ -993,21 +1030,20 @@ declare global {
993
1030
  */
994
1031
  protected override _onDeleteDescendantDocuments(...args: Cards.OnDeleteDescendantDocumentsArgs): void;
995
1032
 
996
- static override defaultName(context?: Document.DefaultNameContext<Cards.SubType, Cards.Parent>): string;
997
-
998
- static override createDialog(
999
- data?: Document.CreateDialogData<Cards.CreateData>,
1000
- context?: Document.CreateDialogContext<Cards.SubType, Cards.Parent>,
1001
- ): Promise<Cards.Stored | null | undefined>;
1033
+ // context: not null (destructured)
1034
+ static override defaultName(context?: Document.DefaultNameContext<"Cards", Cards.Parent>): string;
1002
1035
 
1036
+ // options: not null (parameter default only)
1003
1037
  static override fromDropData(
1004
1038
  data: Document.DropData<Cards.Implementation>,
1005
- options?: Document.FromDropDataOptions,
1039
+ options?: AnyObject,
1006
1040
  ): Promise<Cards.Implementation | undefined>;
1007
1041
 
1008
1042
  static override fromImport(
1009
1043
  source: Cards.Source,
1010
- context?: Document.FromImportContext<Cards.Parent>,
1044
+ context?: Document.FromImportContext<Cards.Parent> | null,
1011
1045
  ): Promise<Cards.Implementation>;
1046
+
1047
+ override _onClickDocumentLink(event: MouseEvent): ClientDocument.OnClickDocumentLinkReturn;
1012
1048
  }
1013
1049
  }