@league-of-foundry-developers/foundry-vtt-types 0.8.9-9 → 9.245.0

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 (295) hide show
  1. package/README.md +44 -27
  2. package/index.d.ts +2 -2
  3. package/package.json +34 -15
  4. package/src/foundry/common/abstract/document.mjs.d.ts +24 -10
  5. package/src/foundry/common/config.mjs/index.d.ts +1 -0
  6. package/src/foundry/common/config.mjs/releaseData.d.ts +98 -0
  7. package/src/foundry/common/constants.mjs.d.ts +403 -213
  8. package/src/foundry/common/data/data.mjs/activeEffectData.d.ts +36 -29
  9. package/src/foundry/common/data/data.mjs/actorData.d.ts +32 -21
  10. package/src/foundry/common/data/data.mjs/adventureData.d.ts +165 -0
  11. package/src/foundry/common/data/data.mjs/ambientLightData.d.ts +45 -124
  12. package/src/foundry/common/data/data.mjs/ambientSoundData.d.ts +49 -77
  13. package/src/foundry/common/data/data.mjs/animationData.d.ts +17 -9
  14. package/src/foundry/common/data/data.mjs/cardData.d.ts +265 -0
  15. package/src/foundry/common/data/data.mjs/cardFaceData.d.ts +66 -0
  16. package/src/foundry/common/data/data.mjs/cardsData.d.ts +238 -0
  17. package/src/foundry/common/data/data.mjs/chatMessageData.d.ts +51 -39
  18. package/src/foundry/common/data/data.mjs/chatSpeakerData.d.ts +18 -11
  19. package/src/foundry/common/data/data.mjs/combatData.d.ts +51 -25
  20. package/src/foundry/common/data/data.mjs/combatantData.d.ts +48 -30
  21. package/src/foundry/common/data/data.mjs/darknessActivation.d.ts +8 -7
  22. package/src/foundry/common/data/data.mjs/drawingData.d.ts +68 -67
  23. package/src/foundry/common/data/data.mjs/effectChangeData.d.ts +21 -25
  24. package/src/foundry/common/data/data.mjs/effectDurationData.d.ts +24 -23
  25. package/src/foundry/common/data/data.mjs/fogExplorationData.d.ts +23 -16
  26. package/src/foundry/common/data/data.mjs/folderData.d.ts +28 -25
  27. package/src/foundry/common/data/data.mjs/index.d.ts +5 -0
  28. package/src/foundry/common/data/data.mjs/itemData.d.ts +26 -18
  29. package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +24 -23
  30. package/src/foundry/common/data/data.mjs/lightData.d.ts +228 -0
  31. package/src/foundry/common/data/data.mjs/macroData.d.ts +52 -35
  32. package/src/foundry/common/data/data.mjs/measuredTemplateData.d.ts +41 -38
  33. package/src/foundry/common/data/data.mjs/noteData.d.ts +47 -37
  34. package/src/foundry/common/data/data.mjs/playlistData.d.ts +55 -26
  35. package/src/foundry/common/data/data.mjs/playlistSoundData.d.ts +32 -16
  36. package/src/foundry/common/data/data.mjs/prototypeTokenData.d.ts +7 -11
  37. package/src/foundry/common/data/data.mjs/rollTableData.d.ts +30 -24
  38. package/src/foundry/common/data/data.mjs/sceneData.d.ts +132 -111
  39. package/src/foundry/common/data/data.mjs/settingData.d.ts +11 -8
  40. package/src/foundry/common/data/data.mjs/tableResultData.d.ts +30 -26
  41. package/src/foundry/common/data/data.mjs/tileData.d.ts +43 -36
  42. package/src/foundry/common/data/data.mjs/tileOcclusion.d.ts +10 -9
  43. package/src/foundry/common/data/data.mjs/tokenBarData.d.ts +6 -3
  44. package/src/foundry/common/data/data.mjs/tokenData.d.ts +105 -157
  45. package/src/foundry/common/data/data.mjs/userData.d.ts +118 -33
  46. package/src/foundry/common/data/data.mjs/videoData.d.ts +9 -8
  47. package/src/foundry/common/data/data.mjs/wallData.d.ts +67 -39
  48. package/src/foundry/common/data/fields.mjs.d.ts +180 -83
  49. package/src/foundry/common/documents.mjs/baseActiveEffect.d.ts +9 -3
  50. package/src/foundry/common/documents.mjs/baseActor.d.ts +17 -45
  51. package/src/foundry/common/documents.mjs/baseAdventure.d.ts +38 -0
  52. package/src/foundry/common/documents.mjs/baseAmbientLight.d.ts +3 -0
  53. package/src/foundry/common/documents.mjs/baseAmbientSound.d.ts +3 -1
  54. package/src/foundry/common/documents.mjs/baseCard.d.ts +62 -0
  55. package/src/foundry/common/documents.mjs/baseCards.d.ts +39 -0
  56. package/src/foundry/common/documents.mjs/baseChatMessage.d.ts +3 -0
  57. package/src/foundry/common/documents.mjs/baseCombat.d.ts +5 -2
  58. package/src/foundry/common/documents.mjs/baseCombatant.d.ts +9 -2
  59. package/src/foundry/common/documents.mjs/baseDrawing.d.ts +11 -1
  60. package/src/foundry/common/documents.mjs/baseFogExploration.d.ts +4 -3
  61. package/src/foundry/common/documents.mjs/baseFolder.d.ts +10 -1
  62. package/src/foundry/common/documents.mjs/baseItem.d.ts +11 -29
  63. package/src/foundry/common/documents.mjs/baseJournalEntry.d.ts +3 -0
  64. package/src/foundry/common/documents.mjs/baseMacro.d.ts +16 -14
  65. package/src/foundry/common/documents.mjs/baseMeasuredTemplate.d.ts +4 -1
  66. package/src/foundry/common/documents.mjs/baseNote.d.ts +2 -2
  67. package/src/foundry/common/documents.mjs/basePlaylist.d.ts +1 -0
  68. package/src/foundry/common/documents.mjs/basePlaylistSound.d.ts +2 -1
  69. package/src/foundry/common/documents.mjs/baseRollTable.d.ts +3 -0
  70. package/src/foundry/common/documents.mjs/baseScene.d.ts +1 -0
  71. package/src/foundry/common/documents.mjs/baseSetting.d.ts +1 -0
  72. package/src/foundry/common/documents.mjs/baseTableResult.d.ts +10 -3
  73. package/src/foundry/common/documents.mjs/baseTile.d.ts +1 -0
  74. package/src/foundry/common/documents.mjs/baseToken.d.ts +3 -0
  75. package/src/foundry/common/documents.mjs/baseUser.d.ts +7 -1
  76. package/src/foundry/common/documents.mjs/baseWall.d.ts +7 -10
  77. package/src/foundry/common/documents.mjs/index.d.ts +3 -0
  78. package/src/foundry/common/module.mjs.d.ts +3 -0
  79. package/src/foundry/common/packages.mjs/moduleData.d.ts +12 -9
  80. package/src/foundry/common/packages.mjs/packageAuthorData.d.ts +24 -24
  81. package/src/foundry/common/packages.mjs/packageCompendiumData.d.ts +27 -21
  82. package/src/foundry/common/packages.mjs/packageData.d.ts +108 -82
  83. package/src/foundry/common/packages.mjs/packageDependencyData.d.ts +18 -11
  84. package/src/foundry/common/packages.mjs/packageLanguageData.d.ts +16 -15
  85. package/src/foundry/common/packages.mjs/systemData.d.ts +21 -20
  86. package/src/foundry/common/packages.mjs/tagPackageAvailability.d.ts +3 -3
  87. package/src/foundry/common/packages.mjs/worldData.d.ts +29 -18
  88. package/src/foundry/common/types.mjs.d.ts +95 -0
  89. package/src/foundry/common/utils/geometry.mjs.d.ts +148 -0
  90. package/src/foundry/common/utils/helpers.mjs.d.ts +64 -39
  91. package/src/foundry/common/utils/module.mjs.d.ts +1 -0
  92. package/src/foundry/common/utils/primitives.mjs.d.ts +106 -16
  93. package/src/foundry/foundry.js/application.d.ts +138 -110
  94. package/src/foundry/foundry.js/applications/basePlaceableHUD.d.ts +2 -2
  95. package/src/foundry/foundry.js/applications/basePlaceableHUDs/drawingHUD.d.ts +2 -2
  96. package/src/foundry/foundry.js/applications/basePlaceableHUDs/tileHUD.d.ts +2 -2
  97. package/src/foundry/foundry.js/applications/basePlaceableHUDs/tokenHUD.d.ts +3 -3
  98. package/src/foundry/foundry.js/applications/cameraViews.d.ts +2 -2
  99. package/src/foundry/foundry.js/applications/chatPopout.d.ts +3 -3
  100. package/src/foundry/foundry.js/applications/compendium.d.ts +2 -2
  101. package/src/foundry/foundry.js/applications/dialog.d.ts +1 -1
  102. package/src/foundry/foundry.js/applications/filePicker.d.ts +2 -2
  103. package/src/foundry/foundry.js/applications/formApplication.d.ts +46 -15
  104. package/src/foundry/foundry.js/applications/formApplications/avConfig.d.ts +1 -1
  105. package/src/foundry/foundry.js/applications/formApplications/combatTrackerConfig.d.ts +2 -2
  106. package/src/foundry/foundry.js/applications/formApplications/defaultTokenConfig.d.ts +1 -1
  107. package/src/foundry/foundry.js/applications/formApplications/documentSheet.d.ts +20 -31
  108. package/src/foundry/foundry.js/applications/formApplications/documentSheets/activeEffectConfig.d.ts +3 -3
  109. package/src/foundry/foundry.js/applications/formApplications/documentSheets/actorSheet.d.ts +2 -2
  110. package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts +104 -0
  111. package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientSoundConfig.d.ts +5 -5
  112. package/src/foundry/foundry.js/applications/formApplications/documentSheets/combatantConfig.d.ts +3 -3
  113. package/src/foundry/foundry.js/applications/formApplications/documentSheets/folderConfig.d.ts +3 -3
  114. package/src/foundry/foundry.js/applications/formApplications/documentSheets/index.d.ts +1 -0
  115. package/src/foundry/foundry.js/applications/formApplications/documentSheets/itemSheet.d.ts +1 -1
  116. package/src/foundry/foundry.js/applications/formApplications/documentSheets/journalSheet.d.ts +1 -1
  117. package/src/foundry/foundry.js/applications/formApplications/documentSheets/lightConfig.d.ts +5 -79
  118. package/src/foundry/foundry.js/applications/formApplications/documentSheets/macroConfig.d.ts +3 -3
  119. package/src/foundry/foundry.js/applications/formApplications/documentSheets/measuredTemplateConfig.d.ts +4 -4
  120. package/src/foundry/foundry.js/applications/formApplications/documentSheets/noteConfig.d.ts +5 -5
  121. package/src/foundry/foundry.js/applications/formApplications/documentSheets/permissionControl.d.ts +7 -7
  122. package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistConfig.d.ts +4 -4
  123. package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistSoundConfig.d.ts +3 -3
  124. package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +7 -10
  125. package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +7 -7
  126. package/src/foundry/foundry.js/applications/formApplications/documentSheets/tileConfig.d.ts +3 -3
  127. package/src/foundry/foundry.js/applications/formApplications/documentSheets/userConfig.d.ts +7 -7
  128. package/src/foundry/foundry.js/applications/formApplications/drawingConfig.d.ts +2 -2
  129. package/src/foundry/foundry.js/applications/formApplications/entitySheetConfig.d.ts +3 -3
  130. package/src/foundry/foundry.js/applications/formApplications/gridConfig.d.ts +2 -2
  131. package/src/foundry/foundry.js/applications/formApplications/imagePopout.d.ts +2 -2
  132. package/src/foundry/foundry.js/applications/formApplications/index.d.ts +1 -0
  133. package/src/foundry/foundry.js/applications/formApplications/keybindingsConfig.d.ts +257 -0
  134. package/src/foundry/foundry.js/applications/formApplications/moduleManagement.d.ts +2 -2
  135. package/src/foundry/foundry.js/applications/formApplications/permissionConfig.d.ts +2 -2
  136. package/src/foundry/foundry.js/applications/formApplications/settingsConfig.d.ts +1 -1
  137. package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +11 -12
  138. package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +9 -9
  139. package/src/foundry/foundry.js/applications/formApplications/worldConfig.d.ts +1 -1
  140. package/src/foundry/foundry.js/applications/frameViewer.d.ts +1 -1
  141. package/src/foundry/foundry.js/applications/headsUpDisplay.d.ts +2 -2
  142. package/src/foundry/foundry.js/applications/hotbar.d.ts +2 -2
  143. package/src/foundry/foundry.js/applications/mainMenu.d.ts +2 -2
  144. package/src/foundry/foundry.js/applications/notifications.d.ts +7 -4
  145. package/src/foundry/foundry.js/applications/pause.d.ts +2 -2
  146. package/src/foundry/foundry.js/applications/playerList.d.ts +2 -2
  147. package/src/foundry/foundry.js/applications/sceneControls.d.ts +2 -2
  148. package/src/foundry/foundry.js/applications/sceneNavigation.d.ts +3 -3
  149. package/src/foundry/foundry.js/applications/sidebar.d.ts +2 -2
  150. package/src/foundry/foundry.js/applications/sidebarTab.d.ts +5 -8
  151. package/src/foundry/foundry.js/applications/sidebarTabs/chatLog.d.ts +8 -7
  152. package/src/foundry/foundry.js/applications/sidebarTabs/combatTracker.d.ts +26 -28
  153. package/src/foundry/foundry.js/applications/sidebarTabs/compendiumDirectory.d.ts +4 -4
  154. package/src/foundry/foundry.js/applications/sidebarTabs/settings.d.ts +2 -2
  155. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/cardsDirectory.d.ts +7 -0
  156. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/index.d.ts +1 -0
  157. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/playlistDirectory.d.ts +2 -2
  158. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +3 -3
  159. package/src/foundry/foundry.js/audioContainer.d.ts +28 -10
  160. package/src/foundry/foundry.js/avSettings.d.ts +7 -7
  161. package/src/foundry/foundry.js/canvas.d.ts +153 -46
  162. package/src/foundry/foundry.js/canvasAnimation.d.ts +31 -8
  163. package/src/foundry/foundry.js/canvasDocumentMixin.d.ts +7 -0
  164. package/src/foundry/foundry.js/clientDocumentMixin.d.ts +47 -92
  165. package/src/foundry/foundry.js/clientDocuments/activeEffect.d.ts +3 -2
  166. package/src/foundry/foundry.js/clientDocuments/actor.d.ts +11 -11
  167. package/src/foundry/foundry.js/clientDocuments/canvasDocuments/ambientSoundDocument.d.ts +1 -6
  168. package/src/foundry/foundry.js/clientDocuments/card.d.ts +134 -0
  169. package/src/foundry/foundry.js/clientDocuments/cards.d.ts +370 -0
  170. package/src/foundry/foundry.js/clientDocuments/chatMessage.d.ts +11 -10
  171. package/src/foundry/foundry.js/clientDocuments/combat.d.ts +46 -48
  172. package/src/foundry/foundry.js/clientDocuments/combatant.d.ts +15 -18
  173. package/src/foundry/foundry.js/clientDocuments/folder.d.ts +15 -11
  174. package/src/foundry/foundry.js/clientDocuments/index.d.ts +2 -0
  175. package/src/foundry/foundry.js/clientDocuments/item.d.ts +3 -4
  176. package/src/foundry/foundry.js/clientDocuments/playlist.d.ts +4 -3
  177. package/src/foundry/foundry.js/clientDocuments/rollTable.d.ts +2 -2
  178. package/src/foundry/foundry.js/clientDocuments/scene.d.ts +30 -23
  179. package/src/foundry/foundry.js/clientKeybindings.d.ts +309 -0
  180. package/src/foundry/foundry.js/clientSettings.d.ts +12 -10
  181. package/src/foundry/foundry.js/collections/documentCollection.d.ts +1 -1
  182. package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +1 -1
  183. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/cardStacks.d.ts +9 -0
  184. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/folders.d.ts +1 -1
  185. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/index.d.ts +1 -0
  186. package/src/foundry/foundry.js/collections/documentCollections/worldCollections/playlists.d.ts +3 -2
  187. package/src/foundry/foundry.js/collisionResult.d.ts +60 -0
  188. package/src/foundry/foundry.js/config.d.ts +487 -907
  189. package/src/foundry/foundry.js/dragDrop.d.ts +27 -34
  190. package/src/foundry/foundry.js/game.d.ts +171 -50
  191. package/src/foundry/foundry.js/gamepadManager.d.ts +41 -0
  192. package/src/foundry/foundry.js/handlebarsHelpers.d.ts +4 -4
  193. package/src/foundry/foundry.js/hooks.d.ts +210 -84
  194. package/src/foundry/foundry.js/imageHelper.d.ts +26 -2
  195. package/src/foundry/foundry.js/keyboardManager.d.ts +165 -213
  196. package/src/foundry/foundry.js/mouseManager.d.ts +18 -0
  197. package/src/foundry/foundry.js/newUserExperience.d.ts +34 -0
  198. package/src/foundry/foundry.js/pixi/containers/cachedContainer.d.ts +8 -0
  199. package/src/foundry/foundry.js/pixi/containers/cachedContainers/index.d.ts +1 -0
  200. package/src/foundry/foundry.js/pixi/containers/cachedContainers/primaryCanvasGroup.d.ts +42 -0
  201. package/src/foundry/foundry.js/pixi/containers/canvasLayers/gridLayer.d.ts +2 -2
  202. package/src/foundry/foundry.js/pixi/containers/canvasLayers/index.d.ts +1 -1
  203. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/wallsLayer.d.ts +3 -3
  204. package/src/foundry/foundry.js/pixi/containers/canvasLayers/{effectsLayer.d.ts → weatherLayer.d.ts} +7 -7
  205. package/src/foundry/foundry.js/pixi/containers/effectsCanvasGroup.d.ts +29 -0
  206. package/src/foundry/foundry.js/pixi/containers/index.d.ts +3 -0
  207. package/src/foundry/foundry.js/pixi/containers/interfaceCanvasGroup.d.ts +27 -0
  208. package/src/foundry/foundry.js/pixi/containers/placeableObject.d.ts +2 -2
  209. package/src/foundry/foundry.js/pixi/containers/placeableObjects/token.d.ts +3 -3
  210. package/src/foundry/foundry.js/pixi/index.d.ts +3 -0
  211. package/src/foundry/foundry.js/pixi/meshes/index.d.ts +1 -0
  212. package/src/foundry/foundry.js/pixi/meshes/samplerMesh.d.ts +22 -0
  213. package/src/foundry/foundry.js/pixi/points/index.d.ts +1 -0
  214. package/src/foundry/foundry.js/pixi/points/wallEndpoint.d.ts +92 -0
  215. package/src/foundry/foundry.js/pixi/polygons/index.d.ts +2 -1
  216. package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygon.d.ts +98 -0
  217. package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygons/clockwiseSweepPolygon.d.ts +396 -0
  218. package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygons/index.d.ts +1 -0
  219. package/src/foundry/foundry.js/pixi/rectangles/normalizedRectangle.d.ts +7 -0
  220. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShader.d.ts +11 -37
  221. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShader.d.ts +114 -0
  222. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveBackgroundShader.d.ts +57 -0
  223. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShader.d.ts +47 -0
  224. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/bewitchingWaveColorationShader.d.ts +6 -0
  225. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/chromaColorationShader.d.ts +6 -0
  226. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/emanationColorationShader.d.ts +6 -0
  227. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/energyFieldColorationShader.d.ts +6 -0
  228. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/fairyLightColorationShader.d.ts +6 -0
  229. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/fogColorationShader.d.ts +6 -0
  230. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/ghostLightColorationShader.d.ts +1 -1
  231. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/hexaDomeColorationShader.d.ts +6 -0
  232. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/index.d.ts +5 -0
  233. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/lightDomeColorationShader.d.ts +6 -0
  234. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/pulseColorationShader.d.ts +1 -1
  235. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/radialRainbowColorationShader.d.ts +6 -0
  236. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/sunburstColorationShader.d.ts +1 -1
  237. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/swirlingRainbowColorationShader.d.ts +6 -0
  238. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/torchColorationShader.d.ts +3 -2
  239. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveColorationShaders/vortexColorationShader.d.ts +6 -0
  240. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardColorationShaders → adaptiveLightingShaders/adaptiveColorationShaders}/waveColorationShader.d.ts +1 -1
  241. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShader.d.ts +63 -0
  242. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/bewitchingWaveIlluminationShader.d.ts +6 -0
  243. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/blackHoleIlluminationShader.d.ts +1 -1
  244. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/fairyLightIlluminationShader.d.ts +6 -0
  245. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/ghostLightIlluminationShader.d.ts +1 -1
  246. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/index.d.ts +3 -0
  247. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/pulseIlluminationShader.d.ts +1 -1
  248. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/roilingIlluminationShader.d.ts +1 -1
  249. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/sunburstIlluminationShader.d.ts +1 -2
  250. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/torchIlluminationShader.d.ts +1 -1
  251. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/adaptiveIlluminationShaders/vortexIlluminationShader.d.ts +6 -0
  252. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/{standardIlluminationShaders → adaptiveLightingShaders/adaptiveIlluminationShaders}/waveIlluminationShader.d.ts +1 -1
  253. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/adaptiveLightingShaders/index.d.ts +5 -0
  254. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/baseSamplerShader.d.ts +22 -0
  255. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/index.d.ts +3 -4
  256. package/src/foundry/foundry.js/pixi/texts/preciseText.d.ts +10 -2
  257. package/src/foundry/foundry.js/pixi/transforms/index.d.ts +1 -0
  258. package/src/foundry/foundry.js/pixi/transforms/synchronizedTransform.d.ts +38 -0
  259. package/src/foundry/foundry.js/pointSource.d.ts +59 -328
  260. package/src/foundry/foundry.js/pointSources/index.d.ts +3 -0
  261. package/src/foundry/foundry.js/pointSources/lightSource.d.ts +417 -0
  262. package/src/foundry/foundry.js/pointSources/soundSource.d.ts +46 -0
  263. package/src/foundry/foundry.js/pointSources/visionSource.d.ts +125 -0
  264. package/src/foundry/foundry.js/polygonEdge.d.ts +26 -0
  265. package/src/foundry/foundry.js/polygonVertex.d.ts +89 -0
  266. package/src/foundry/foundry.js/quadtree.d.ts +2 -2
  267. package/src/foundry/foundry.js/quadtreeCulling.d.ts +11 -0
  268. package/src/foundry/foundry.js/ray.d.ts +156 -162
  269. package/src/foundry/foundry.js/rays/index.d.ts +1 -0
  270. package/src/foundry/foundry.js/rays/sightRay.d.ts +34 -0
  271. package/src/foundry/foundry.js/roll.d.ts +51 -65
  272. package/src/foundry/foundry.js/rollTerm.d.ts +7 -4
  273. package/src/foundry/foundry.js/rollTerms/diceTerm.d.ts +4 -22
  274. package/src/foundry/foundry.js/rollTerms/mathTerm.d.ts +3 -0
  275. package/src/foundry/foundry.js/rollTerms/parentheticalTerm.d.ts +3 -0
  276. package/src/foundry/foundry.js/rollTerms/poolTerm.d.ts +3 -5
  277. package/src/foundry/foundry.js/rollTerms/stringTerm.d.ts +4 -1
  278. package/src/foundry/foundry.js/screenCulling.d.ts +19 -0
  279. package/src/foundry/foundry.js/searchFilter.d.ts +37 -33
  280. package/src/foundry/foundry.js/specialEffect.d.ts +1 -1
  281. package/src/foundry/foundry.js/textEditor.d.ts +1 -1
  282. package/src/foundry/foundry.js/textureLoader.d.ts +28 -18
  283. package/src/foundry/foundry.js/textureUtils.d.ts +5 -8
  284. package/src/foundry/foundry.js/videoHelper.d.ts +2 -1
  285. package/src/foundry/index.d.ts +29 -26
  286. package/src/types/utils.d.ts +11 -3
  287. package/src/foundry/foundry.js/pixi/polygons/sourcePolygon.d.ts +0 -25
  288. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShader.d.ts +0 -21
  289. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/chromaColorationShader.d.ts +0 -18
  290. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/emanationColorationShader.d.ts +0 -17
  291. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/energyFieldColorationShader.d.ts +0 -18
  292. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/fogColorationShader.d.ts +0 -17
  293. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/hexaDomeColorationShader.d.ts +0 -17
  294. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardColorationShaders/lightDomeColorationShader.d.ts +0 -17
  295. package/src/foundry/foundry.js/pixi/shaders/abstractBaseShaders/standardIlluminationShader.d.ts +0 -22
package/README.md CHANGED
@@ -2,47 +2,64 @@
2
2
 
3
3
  <div align=center>
4
4
 
5
+ <img align=center src="./media/img/league-logo-ts.svg" alt="League Logo TS" width="150"/>
6
+
5
7
  TypeScript type definitions for [Foundry Virtual Tabletop](https://foundryvtt.com/) (unofficial)
6
8
 
7
9
  [![League Discord Server](https://img.shields.io/discord/732325252788387980?label=League%20of%20Extraordinary%20Foundry%20VTT%20Developers)](https://discord.gg/52DNPzqm2Z)
8
- ![GitHub 0.7.x issues by-label](https://img.shields.io/github/issues-raw/League-of-Foundry-Developers/foundry-vtt-types/foundry%200.7.x?color=%23fe631d)
9
- ![GitHub closed 0.7.x issues by-label](https://img.shields.io/github/issues-closed-raw/League-of-Foundry-Developers/foundry-vtt-types/foundry%200.7.x?color=%23fe631d)
10
- ![GitHub 0.8.x issues by-label](https://img.shields.io/github/issues-raw/League-of-Foundry-Developers/foundry-vtt-types/foundry%200.8.x?color=%23fe631d)
11
- ![GitHub closed 0.8.x issues by-label](https://img.shields.io/github/issues-closed-raw/League-of-Foundry-Developers/foundry-vtt-types/foundry%200.8.x?color=%23fe631d)
10
+ ![GitHub V9 issues by-label](https://img.shields.io/github/issues-raw/League-of-Foundry-Developers/foundry-vtt-types/foundry%20V9?color=%23fe631d)
11
+ ![GitHub closed V9 issues by-label](https://img.shields.io/github/issues-closed-raw/League-of-Foundry-Developers/foundry-vtt-types/foundry%20V9?color=%23fe631d)
12
12
  [![npm (tag)](https://img.shields.io/npm/v/@league-of-foundry-developers/foundry-vtt-types/latest)](https://www.npmjs.com/package/@league-of-foundry-developers/foundry-vtt-types)
13
13
 
14
14
  </div>
15
15
 
16
16
  ## Supported Foundry VTT versions
17
17
 
18
- We aim to support the latest patch release of minor versions of Foundry VTT, starting with 0.7.
18
+ We aim to support the latest release of each Foundry VTT version (0.7, 0.8, 9, etc.), starting with 0.7.
19
+
20
+ At the moment, both version 0.7 and 0.8 are fully supported. Version 9 is already partially supported, but there is still a lot to be done. See https://github.com/League-of-Foundry-Developers/foundry-vtt-types/issues?q=is%3Aopen+is%3Aissue+label%3A%22foundry+V9%22 to keep track of the progress.
19
21
 
20
- At the moment, the latest 0.7.x and 0.8.x versions are supported. However, note that work on 0.8.x has not been
21
- completed yet, so there are still quite a few things which are either missing or typed incorrectly. Take a look at
22
- [0.8.x issues](https://github.com/League-of-Foundry-Developers/foundry-vtt-types/issues?q=is%3Aopen+is%3Aissue+label%3A%22foundry+0.8.x%22)
23
- to see what still needs to be done.
24
22
 
25
23
  ## Installation
26
24
 
27
- You can install foundry-vtt-types from the [npm registry](https://npmjs.org/). We provide distribution tags for the
28
- different supported Foundry VTT versions that have the form `fvtt-<foundry-version>`. For example, the distribution tag
29
- for Foundry VTT 0.8.8 is `fvtt-0.8.8`.
25
+ You can install foundry-vtt-types from the [npm registry](https://npmjs.org/).
30
26
 
31
- In order to install the desired version, run
27
+ In order to install the latest version, run
32
28
 
33
29
  ```sh
34
- npm install --save-dev @league-of-foundry-developers/foundry-vtt-types@fvtt-<foundry-version>
30
+ npm install --save-dev @league-of-foundry-developers/foundry-vtt-types
35
31
  ```
36
32
 
37
- For example, to install the type definitions for Foundry VTT 0.8.8 run
33
+ In order to install a specific version run
38
34
 
39
35
  ```sh
40
- npm install --save-dev @league-of-foundry-developers/foundry-vtt-types@fvtt-0.8.8
36
+ npm install --save-dev @league-of-foundry-developers/foundry-vtt-types@<version>
37
+ ```
38
+
39
+ For example, to install version `9.238.0`, run
40
+
41
+ ```sh
42
+ npm install --save-dev @league-of-foundry-developers/foundry-vtt-types@9.238.0
41
43
  ```
42
44
 
43
45
  You can then update foundry-vtt-types using the regular update mechanism for npm
44
46
  (see [npm update](https://docs.npmjs.com/cli/v7/commands/npm-update)).
45
47
 
48
+ ## Versioning scheme
49
+
50
+ The versions of the foundry-vtt-types correspond to the releases of Foundry VTT. The versioning scheme of Foundry VTT
51
+ changed with version 9, so the versioning scheme for the foundry-vtt-types also changes with that version:
52
+ * For Foundry VTT version 0.7 and 0.8, the versioning scheme is
53
+ ```
54
+ 0.<foundy-minor-version>.<foundry-patch-version>-<increment>
55
+ ```
56
+ * For Foundry VTT version 9 and onwards, the versioning scheme is
57
+ ```
58
+ <foundry-version>.<foundry-build>.<increment>
59
+ ```
60
+ In both cases, `increment` is a number that increases with every individual release of the foundry-vtt-types for that
61
+ Foundry VTT release.
62
+
46
63
  ## Usage
47
64
 
48
65
  Add foundry-vtt-types to your types section in your `tsconfig.json`:
@@ -62,13 +79,13 @@ This will make the type definitions available globally in your project.
62
79
  Make sure you are using `"moduleResolution": "node"`, too. It is required for some dependencies to be resolved
63
80
  correctly.
64
81
 
65
- Also make sure to set `"strictNullChecks": true` because otherwise, some of the conditional types used in the type
66
- definitions resolve incorrectly and you will see a lot of errors.
82
+ Also make sure to set `"strictNullChecks": true` because otherwise, some conditional types used in the type definitions
83
+ resolve incorrectly, and you will see a lot of errors. Alternatively, you can just set `"strict": true`, which
84
+ implicitly sets `strictNullChecks`. This is actually what we **recommend**, but it's not required.
67
85
 
68
86
  You can find some information about how to actually work with the type definitions in the
69
- [Wiki](https://github.com/League-of-Foundry-Developers/foundry-vtt-types/wiki). If you are working with Foundry VTT
70
- 0.8.x, a good starting point is
71
- [[0.8.x] FAQ](https://github.com/League-of-Foundry-Developers/foundry-vtt-types/wiki/%5B0.8.x%5D-FAQ).
87
+ [Wiki](https://github.com/League-of-Foundry-Developers/foundry-vtt-types/wiki). A good starting point is
88
+ the [FAQ](https://github.com/League-of-Foundry-Developers/foundry-vtt-types/wiki/FAQ).
72
89
 
73
90
  ## Acknowledgments
74
91
 
@@ -80,10 +97,10 @@ by [@NickEastNL](https://gitlab.com/NvanOosten)
80
97
  Contributions are very welcome in order to decrease the individual workload. Filing issues for wrong / missing types is
81
98
  also a great way to help us improve the type definitions.
82
99
 
83
- There are individual branches for the different supported Foundry VTT versions that are being worked on. They are named
84
- according to the minor version of the Foundry VTT version, e.g. the branch for Foundry VTT 0.8 is called
85
- `foundry-0.8.x`. All work to improve the type definitions for a specific version needs to be done through Pull Requests
86
- to the corresponding branch.
100
+ Development on the current version of Foundry VTT is done on the `main` branch. Additionally, we keep branches for the
101
+ older version of Foundry VTT that we still support. These branches are named according to the Foundry VTT version they
102
+ correspond to. For example, the branch for Foundry VTT 0.8 is called `foundry-0.8.x`. All work to improve the type
103
+ definitions needs to be done through Pull Requests to the relevant branch.
87
104
 
88
105
  Please read [CONTRIBUTING.md](CONTRIBUTING.md) for more details on how to contribute.
89
106
 
@@ -92,7 +109,7 @@ If you have any specific questions, feel free to contact us in the
92
109
 
93
110
  ## Type-Checking, Linting, Testing
94
111
 
95
- When contributing, make sure sure that the type checks pass, the linter is green and the tests are green. We _do_ have
112
+ When contributing, make sure that the type checks pass, the linter is green and the tests are green. We _do_ have
96
113
  checks in the CI but running this locally also helps you while developing and saves you time as you don't have to wait
97
114
  for the CI.
98
115
 
@@ -114,7 +131,7 @@ To create a release, you have to create a new release commit, tag it and create
114
131
  handle the rest.
115
132
 
116
133
  ```
117
- npm version prerelease
134
+ npm version <release-type>
118
135
  git push --follow-tags
119
136
  ```
120
137
 
package/index.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import 'jquery';
2
- import 'handlebars';
3
1
  import 'pixi.js';
4
2
  import './src';
3
+ import 'handlebars';
4
+ import 'jquery';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@league-of-foundry-developers/foundry-vtt-types",
3
- "version": "0.8.9-9",
3
+ "version": "9.245.0",
4
4
  "description": "TypeScript type definitions for Foundry VTT",
5
5
  "exports": {
6
6
  ".": {
@@ -23,7 +23,26 @@
23
23
  "type": "git",
24
24
  "url": "https://github.com/League-of-Foundry-Developers/foundry-vtt-types"
25
25
  },
26
- "author": "Kai Moschcau",
26
+ "contributors": [
27
+ {
28
+ "name": "Kai Moschcau"
29
+ },
30
+ {
31
+ "name": "Johannes Loher"
32
+ },
33
+ {
34
+ "name": "Oskar Pfeifer-Bley"
35
+ },
36
+ {
37
+ "name": "FloRad"
38
+ },
39
+ {
40
+ "name": "NickEastNL"
41
+ },
42
+ {
43
+ "name": "BoltsJ"
44
+ }
45
+ ],
27
46
  "license": "MIT",
28
47
  "bugs": {
29
48
  "url": "https://github.com/League-of-Foundry-Developers/foundry-vtt-types/issues"
@@ -36,26 +55,26 @@
36
55
  "typscript"
37
56
  ],
38
57
  "dependencies": {
39
- "@types/jquery": "~3.5.6",
58
+ "@types/jquery": "~3.5.9",
40
59
  "@types/simple-peer": "~9.11.1",
41
60
  "handlebars": "4.7.7",
42
61
  "pixi-particles": "4.3.1",
43
- "pixi.js": "5.3.4",
44
- "socket.io-client": "4.1.2",
45
- "tinymce": "5.8.1"
62
+ "pixi.js": "5.3.11",
63
+ "socket.io-client": "4.3.2",
64
+ "tinymce": "5.10.1"
46
65
  },
47
66
  "devDependencies": {
48
- "@typescript-eslint/eslint-plugin": "^4.28.3",
49
- "@typescript-eslint/parser": "^4.28.3",
50
- "eslint": "^7.30.0",
67
+ "@typescript-eslint/eslint-plugin": "^5.5.0",
68
+ "@typescript-eslint/parser": "^5.5.0",
69
+ "eslint": "^8.4.0",
51
70
  "eslint-config-prettier": "^8.3.0",
52
71
  "eslint-plugin-prettier": "^4.0.0",
53
72
  "eslint-plugin-tsdoc": "^0.2.14",
54
- "husky": "^7.0.1",
55
- "lint-staged": "^11.0.1",
56
- "prettier": "^2.3.2",
57
- "tsd": "^0.17.0",
58
- "typescript": "^4.4.3"
73
+ "husky": "^7.0.4",
74
+ "lint-staged": "^12.1.2",
75
+ "prettier": "^2.5.1",
76
+ "tsd": "~0.18.0",
77
+ "typescript": "~4.5.3"
59
78
  },
60
79
  "husky": {
61
80
  "hooks": {
@@ -64,7 +83,7 @@
64
83
  },
65
84
  "lint-staged": {
66
85
  "*.(d.ts|test-d.ts)": "eslint --fix",
67
- "*.(js|json)": "prettier --write"
86
+ "*.(js|json|yml)": "prettier --write"
68
87
  },
69
88
  "files": [
70
89
  "index.d.ts",
@@ -124,7 +124,7 @@ declare abstract class Document<
124
124
  get name(): string | null;
125
125
 
126
126
  /**
127
- * Test whether a given User has a sufficient role in order to create Documents of this type.
127
+ * Test whether a given User has a sufficient role in order to create Documents of this type in general.
128
128
  * @param user - The User being tested
129
129
  * @returns Does the User have a sufficient role to create?
130
130
  */
@@ -137,35 +137,35 @@ declare abstract class Document<
137
137
  * (default: `{}`)
138
138
  * @param save - Save the clone to the World database?
139
139
  * (default: `false`)
140
- * @param keepId - Keep the original Document ID? Otherwise the ID will become undefined
141
- * (default: `false`)
140
+ * @param context - Additional context options passed to the create method
141
+ * (default: `{}`)
142
142
  * @returns The cloned Document instance
143
143
  */
144
144
  clone(
145
145
  data?: DeepPartial<
146
146
  ConstructorDataType<ConcreteDocumentData> | (ConstructorDataType<ConcreteDocumentData> & Record<string, unknown>)
147
147
  >,
148
- { save, keepId }?: { save?: boolean; keepId?: boolean }
148
+ { save, ...context }?: { save: boolean } & DocumentModificationContext
149
149
  ): TemporaryDocument<this> | Promise<TemporaryDocument<this> | undefined>;
150
150
 
151
151
  /**
152
- * Get the permission level that a specific User has over this Document, a value in CONST.ENTITY_PERMISSIONS.
152
+ * Get the permission level that a specific User has over this Document, a value in CONST.DOCUMENT_PERMISSION_LEVELS.
153
153
  * @param user - The User being tested
154
- * @returns A numeric permission level from CONST.ENTITY_PERMISSIONS or null
154
+ * @returns A numeric permission level from CONST.DOCUMENT_PERMISSION_LEVELS or null
155
155
  */
156
- getUserLevel(user: BaseUser): foundry.CONST.EntityPermission | null;
156
+ getUserLevel(user: BaseUser): foundry.CONST.DOCUMENT_PERMISSION_LEVELS | null;
157
157
 
158
158
  /**
159
159
  * Test whether a certain User has a requested permission level (or greater) over the Document
160
160
  * @param user - The User being tested
161
- * @param permission - The permission level from ENTITY_PERMISSIONS to test
161
+ * @param permission - The permission level from DOCUMENT_PERMISSION_LEVELS to test
162
162
  * @param exact - Require the exact permission level requested?
163
163
  * (default: `false`)
164
164
  * @returns Does the user have this permission level over the Document?
165
165
  */
166
166
  testUserPermission(
167
167
  user: BaseUser,
168
- permission: keyof typeof foundry.CONST.ENTITY_PERMISSIONS | foundry.CONST.EntityPermission,
168
+ permission: keyof typeof foundry.CONST.DOCUMENT_PERMISSION_LEVELS | foundry.CONST.DOCUMENT_PERMISSION_LEVELS,
169
169
  { exact }?: { exact?: boolean }
170
170
  ): boolean;
171
171
 
@@ -687,6 +687,13 @@ declare abstract class Document<
687
687
  toJSON(): this['id'] extends string
688
688
  ? ReturnType<ConcreteDocumentData['toJSON']> & { _id: string }
689
689
  : ReturnType<ConcreteDocumentData['toJSON']>;
690
+
691
+ /**
692
+ * For Documents which include game system data, migrate the system data object to conform to its latest data model.
693
+ * The data model is defined by the template.json specification included by the game system.
694
+ * @returns The migrated system data object
695
+ */
696
+ migrateSystemData(): object;
690
697
  }
691
698
 
692
699
  export interface DocumentModificationOptions {
@@ -713,6 +720,12 @@ export interface DocumentModificationOptions {
713
720
  */
714
721
  keepId?: boolean;
715
722
 
723
+ /**
724
+ * When performing a creation operation, keep existing _id values of documents embedded within the one being created instead of generating new ones.
725
+ * @defaultValue `true`
726
+ */
727
+ keepEmbeddedIds?: boolean;
728
+
716
729
  /**
717
730
  * Create a temporary document which is not saved to the database. Only used during creation.
718
731
  * @defaultValue `false`
@@ -784,7 +797,8 @@ export interface Metadata<ConcreteDocument extends Document<any, any>> {
784
797
  name: DocumentType;
785
798
  collection: string;
786
799
  label: string;
787
- types: string[] | Record<string, unknown>; // TODO: Record<string, unknown> is only there because In BaseTableResult this is set to CONST.TABLE_RESULT_TYPES, check if this is a bug in foundry
800
+ labelPlural: string; // This is not set for the Document class but every class that implements Document actually provides it.
801
+ types: readonly string[];
788
802
  embedded: Record<string, ConstructorOf<Document<any, any>>>;
789
803
  hasSystemData: boolean;
790
804
  permissions: {
@@ -0,0 +1 @@
1
+ export { ReleaseData } from './releaseData';
@@ -0,0 +1,98 @@
1
+ import { PropertiesToSource } from '../../../types/helperTypes';
2
+ import { DocumentData } from '../abstract/module.mjs';
3
+ import * as fields from '../data/fields.mjs';
4
+
5
+ export interface ReleaseDataSchema extends DocumentSchema {
6
+ generation: typeof fields.REQUIRED_NUMBER;
7
+ channel: typeof fields.REQUIRED_STRING;
8
+ suffix: typeof fields.STRING_FIELD;
9
+ build: typeof fields.REQUIRED_NUMBER;
10
+ time: typeof fields.TIMESTAMP_FIELD;
11
+ node_version: typeof fields.POSITIVE_INTEGER_FIELD;
12
+ notes: typeof fields.BLANK_STRING;
13
+ download: typeof fields.BLANK_STRING;
14
+ }
15
+
16
+ export interface ReleaseDataProperties {
17
+ /** The major generation of the Release */
18
+ generation: number;
19
+
20
+ /** The channel the Release belongs to, such as "stable" */
21
+ channel: string;
22
+
23
+ /** An optional appended string display for the Release */
24
+ suffix: string | undefined;
25
+
26
+ /** The internal build number for the Release */
27
+ build: number;
28
+
29
+ /** When the Release was released */
30
+ time: number | undefined;
31
+
32
+ /** The minimum required Node.js major version */
33
+ node_version: number | undefined;
34
+
35
+ /** Release notes for the update version */
36
+ notes: string;
37
+
38
+ /** A temporary download URL where this version may be obtained */
39
+ download: string;
40
+ }
41
+
42
+ export interface ReleaseDataConstructorData {
43
+ /** The major generation of the Release */
44
+ generation?: number | undefined | null;
45
+
46
+ /** The channel the Release belongs to, such as "stable" */
47
+ channel: string;
48
+
49
+ /** An optional appended string display for the Release */
50
+ suffix?: string | undefined | null;
51
+
52
+ /** The internal build number for the Release */
53
+ build?: number | undefined | null;
54
+
55
+ /** When the Release was released */
56
+ time?: number | undefined | null;
57
+
58
+ /** The minimum required Node.js major version */
59
+ node_version?: number | undefined | null;
60
+
61
+ /** Release notes for the update version */
62
+ notes?: string | undefined | null;
63
+
64
+ /** A temporary download URL where this version may be obtained */
65
+ download?: string | undefined | null;
66
+ }
67
+
68
+ /** A data object which represents the details of this Release of Foundry VTT */
69
+ export declare class ReleaseData<
70
+ Schema extends ReleaseDataSchema = ReleaseDataSchema,
71
+ Properties extends ReleaseDataProperties = ReleaseDataProperties,
72
+ ConstructorData extends ReleaseDataConstructorData = ReleaseDataConstructorData
73
+ > extends DocumentData<Schema, Properties, PropertiesToSource<ReleaseDataProperties>, ConstructorData> {
74
+ static defineSchema(): ReleaseDataSchema;
75
+
76
+ /** A formatted string for shortened display, such as "Version 9" */
77
+ get shortDisplay(): string;
78
+
79
+ /** A formatted string for general display, such as "V9 Prototype 1" */
80
+ get display(): string;
81
+
82
+ /** A formatted string for Version compatibility checking, such as "9.150" */
83
+ get version(): string;
84
+
85
+ /**
86
+ * Is this ReleaseData object newer than some other version?
87
+ * @param other - Some other version to compare against
88
+ * @returns Is this ReleaseData a newer version?
89
+ */
90
+ isNewer(other: string | ReleaseData): boolean;
91
+
92
+ /**
93
+ * Is this ReleaseData object a newer generation than some other version?
94
+ * @param other - Some other version to compare against
95
+ * @returns Is this ReleaseData a newer generation?
96
+ */
97
+ isGenerationalChange(other: string | ReleaseData): boolean;
98
+ }