@league-of-foundry-developers/foundry-vtt-types 9.280.1 → 12.331.1-beta
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.
- package/README.md +21 -18
- package/index-lenient.d.mts +7 -0
- package/index.d.mts +5 -0
- package/package.json +67 -39
- package/src/foundry/client/apps/app.d.mts +595 -0
- package/src/foundry/client/apps/av/av-config.d.mts +93 -0
- package/src/foundry/client/apps/av/cameras.d.mts +189 -0
- package/src/foundry/client/apps/av/index.d.mts +3 -0
- package/src/foundry/client/apps/dialogs/folder-export.d.mts +16 -0
- package/src/foundry/client/apps/dialogs/index.d.mts +1 -0
- package/src/foundry/client/apps/form.d.mts +469 -0
- package/src/foundry/client/apps/forms/actor.d.mts +176 -0
- package/src/foundry/client/apps/forms/adventure-exporter.d.mts +132 -0
- package/src/foundry/client/apps/forms/adventure-importer.d.mts +85 -0
- package/src/foundry/client/apps/forms/base-sheet.d.mts +45 -0
- package/src/foundry/client/apps/forms/card-config.d.mts +48 -0
- package/src/foundry/client/apps/forms/cards-config.d.mts +141 -0
- package/src/foundry/client/apps/forms/combat-config.d.mts +51 -0
- package/src/foundry/client/apps/forms/combatant-config.d.mts +45 -0
- package/src/foundry/client/apps/forms/default-sheets-config.d.mts +46 -0
- package/src/foundry/client/apps/forms/effect-config.d.mts +77 -0
- package/src/foundry/client/apps/forms/folder-config.d.mts +60 -0
- package/src/foundry/client/apps/forms/fonts.d.mts +168 -0
- package/src/foundry/client/apps/forms/grid-config.d.mts +144 -0
- package/src/foundry/client/apps/forms/image-popout.d.mts +179 -0
- package/src/foundry/client/apps/forms/index.d.mts +26 -0
- package/src/foundry/client/apps/forms/item.d.mts +58 -0
- package/src/foundry/client/apps/forms/journal-page-sheet.d.mts +313 -0
- package/src/foundry/client/apps/forms/journal-sheet.d.mts +312 -0
- package/src/foundry/client/apps/forms/macro-config.d.mts +59 -0
- package/src/foundry/client/apps/forms/measure-template.d.mts +59 -0
- package/src/foundry/client/apps/forms/ownership.d.mts +66 -0
- package/src/foundry/client/apps/forms/playlist-config.d.mts +46 -0
- package/src/foundry/client/apps/forms/playlist-sound-config.d.mts +63 -0
- package/src/foundry/client/apps/forms/roll-table-config.d.mts +160 -0
- package/src/foundry/client/apps/forms/scene-config.d.mts +157 -0
- package/src/foundry/client/apps/forms/sheet-config.d.mts +202 -0
- package/src/foundry/client/apps/forms/user-config.d.mts +71 -0
- package/src/foundry/client/apps/hud/chatbubble.d.mts +113 -0
- package/src/foundry/client/apps/hud/container.d.mts +54 -0
- package/src/foundry/client/apps/hud/controls.d.mts +166 -0
- package/src/foundry/client/apps/hud/hotbar.d.mts +169 -0
- package/src/foundry/client/apps/hud/hud.d.mts +87 -0
- package/src/foundry/client/apps/hud/index.d.mts +9 -0
- package/src/foundry/client/apps/hud/menu.d.mts +77 -0
- package/src/foundry/client/apps/hud/navigation.d.mts +116 -0
- package/src/foundry/client/apps/hud/pause.d.mts +32 -0
- package/src/foundry/client/apps/hud/players.d.mts +82 -0
- package/src/foundry/client/apps/i18n.d.mts +162 -0
- package/src/foundry/client/apps/index.d.mts +10 -0
- package/src/foundry/client/apps/placeables/drawing-config.d.mts +80 -0
- package/src/foundry/client/apps/placeables/drawing-hud.d.mts +31 -0
- package/src/foundry/client/apps/placeables/index.d.mts +10 -0
- package/src/foundry/client/apps/placeables/light-config.d.mts +100 -0
- package/src/foundry/client/apps/placeables/note-config.d.mts +65 -0
- package/src/foundry/client/apps/placeables/sound-config.d.mts +43 -0
- package/src/foundry/client/apps/placeables/tile-config.d.mts +54 -0
- package/src/foundry/client/apps/placeables/tile-hud.d.mts +37 -0
- package/src/foundry/client/apps/placeables/token-config.d.mts +244 -0
- package/src/foundry/client/apps/placeables/token-hud.d.mts +134 -0
- package/src/foundry/client/apps/placeables/wall-config.d.mts +63 -0
- package/src/foundry/client/apps/sidebar/apps/chat-popout.d.mts +39 -0
- package/src/foundry/client/apps/sidebar/apps/client-settings.d.mts +98 -0
- package/src/foundry/client/apps/sidebar/apps/compendium.d.mts +93 -0
- package/src/foundry/client/apps/sidebar/apps/index.d.mts +10 -0
- package/src/foundry/client/apps/sidebar/apps/invitation-links.d.mts +32 -0
- package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.mts +180 -0
- package/src/foundry/client/apps/sidebar/apps/module-management.d.mts +135 -0
- package/src/foundry/client/apps/sidebar/apps/permission-config.d.mts +72 -0
- package/src/foundry/client/apps/sidebar/apps/support-details.d.mts +121 -0
- package/src/foundry/client/apps/sidebar/apps/tours-management.d.mts +54 -0
- package/src/foundry/client/apps/sidebar/apps/world-config.d.mts +57 -0
- package/src/foundry/client/apps/sidebar/directory-tab-mixin.d.mts +276 -0
- package/src/foundry/client/apps/sidebar/document-directory.d.mts +164 -0
- package/src/foundry/client/apps/sidebar/index.d.mts +7 -0
- package/src/foundry/client/apps/sidebar/package-configuration.d.mts +86 -0
- package/src/foundry/client/apps/sidebar/sidebar-tab.d.mts +80 -0
- package/src/foundry/client/apps/sidebar/sidebar.d.mts +95 -0
- package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.mts +20 -0
- package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.mts +12 -0
- package/src/foundry/client/apps/sidebar/tabs/chat-log.d.mts +364 -0
- package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.mts +156 -0
- package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.mts +105 -0
- package/src/foundry/client/apps/sidebar/tabs/index.d.mts +12 -0
- package/src/foundry/client/apps/sidebar/tabs/items-directory.d.mts +14 -0
- package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.mts +13 -0
- package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.mts +16 -0
- package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.mts +275 -0
- package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.mts +13 -0
- package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.mts +34 -0
- package/src/foundry/client/apps/sidebar/tabs/settings.d.mts +72 -0
- package/src/foundry/client/apps/templates.d.mts +546 -0
- package/src/foundry/client/audio/audio.d.mts +390 -0
- package/src/foundry/client/audio/container.d.mts +176 -0
- package/src/foundry/client/audio/index.d.mts +3 -0
- package/src/foundry/client/audio/sound.d.mts +307 -0
- package/src/foundry/client/av/client.d.mts +162 -0
- package/src/foundry/client/av/clients/index.d.mts +1 -0
- package/src/foundry/client/av/clients/simplepeer.d.mts +155 -0
- package/src/foundry/client/av/index.d.mts +4 -0
- package/src/foundry/client/av/master.d.mts +191 -0
- package/src/foundry/client/av/settings.d.mts +315 -0
- package/src/foundry/client/config.d.mts +2856 -0
- package/src/foundry/client/core/clipboard.d.mts +20 -0
- package/src/foundry/client/core/document-index.d.mts +118 -0
- package/src/foundry/client/core/gamepad.d.mts +62 -0
- package/src/foundry/client/core/hooks.d.mts +132 -0
- package/src/foundry/client/core/image.d.mts +190 -0
- package/src/foundry/client/core/index.d.mts +20 -0
- package/src/foundry/client/core/issues.d.mts +102 -0
- package/src/foundry/client/core/keybindings.d.mts +312 -0
- package/src/foundry/client/core/keyboard.d.mts +224 -0
- package/src/foundry/client/core/mouse.d.mts +28 -0
- package/src/foundry/client/core/nue.d.mts +38 -0
- package/src/foundry/client/core/packages.d.mts +185 -0
- package/src/foundry/client/core/settings.d.mts +260 -0
- package/src/foundry/client/core/socket.d.mts +16 -0
- package/src/foundry/client/core/sorting.d.mts +76 -0
- package/src/foundry/client/core/time.d.mts +73 -0
- package/src/foundry/client/core/tooltip.d.mts +198 -0
- package/src/foundry/client/core/tour.d.mts +279 -0
- package/src/foundry/client/core/tours.d.mts +22 -0
- package/src/foundry/client/core/utils.d.mts +71 -0
- package/src/foundry/client/core/video.d.mts +161 -0
- package/src/foundry/client/core/workers.d.mts +128 -0
- package/src/foundry/client/data/abstract/canvas-document.d.mts +63 -0
- package/src/foundry/client/data/abstract/client-document.d.mts +717 -0
- package/src/foundry/client/data/abstract/directory-collection-mixin.d.mts +135 -0
- package/src/foundry/client/data/abstract/document-collection.d.mts +204 -0
- package/src/foundry/client/data/abstract/index.d.mts +5 -0
- package/src/foundry/client/data/abstract/world-collection.d.mts +171 -0
- package/src/foundry/client/data/collections/actors.d.mts +41 -0
- package/src/foundry/client/data/collections/cards.d.mts +12 -0
- package/src/foundry/client/data/collections/combats.d.mts +43 -0
- package/src/foundry/client/data/collections/compendium-collection.d.mts +504 -0
- package/src/foundry/client/data/collections/compendium-folders.d.mts +13 -0
- package/src/foundry/client/data/collections/compendium-packs.d.mts +27 -0
- package/src/foundry/client/data/collections/fog.d.mts +17 -0
- package/src/foundry/client/data/collections/folder.d.mts +27 -0
- package/src/foundry/client/data/collections/index.d.mts +17 -0
- package/src/foundry/client/data/collections/items.d.mts +14 -0
- package/src/foundry/client/data/collections/journal.d.mts +62 -0
- package/src/foundry/client/data/collections/macros.d.mts +32 -0
- package/src/foundry/client/data/collections/messages.d.mts +35 -0
- package/src/foundry/client/data/collections/playlists.d.mts +34 -0
- package/src/foundry/client/data/collections/scenes.d.mts +68 -0
- package/src/foundry/client/data/collections/settings.d.mts +29 -0
- package/src/foundry/client/data/collections/tables.d.mts +21 -0
- package/src/foundry/client/data/collections/users.d.mts +50 -0
- package/src/foundry/client/data/documents/active-effect.d.mts +348 -0
- package/src/foundry/client/data/documents/actor-delta.d.mts +88 -0
- package/src/foundry/client/data/documents/actor.d.mts +301 -0
- package/src/foundry/client/data/documents/adventure.d.mts +94 -0
- package/src/foundry/client/data/documents/ambient-light.d.mts +32 -0
- package/src/foundry/client/data/documents/ambient-sound.d.mts +19 -0
- package/src/foundry/client/data/documents/card.d.mts +115 -0
- package/src/foundry/client/data/documents/cards.d.mts +342 -0
- package/src/foundry/client/data/documents/chat-message.d.mts +218 -0
- package/src/foundry/client/data/documents/combat.d.mts +315 -0
- package/src/foundry/client/data/documents/combatant.d.mts +90 -0
- package/src/foundry/client/data/documents/drawing.d.mts +24 -0
- package/src/foundry/client/data/documents/fog-exploration.d.mts +51 -0
- package/src/foundry/client/data/documents/folder.d.mts +123 -0
- package/src/foundry/client/data/documents/index.d.mts +30 -0
- package/src/foundry/client/data/documents/item.d.mts +55 -0
- package/src/foundry/client/data/documents/journal-entry-page.d.mts +219 -0
- package/src/foundry/client/data/documents/journal-entry.d.mts +71 -0
- package/src/foundry/client/data/documents/macro.d.mts +73 -0
- package/src/foundry/client/data/documents/measured-template.d.mts +29 -0
- package/src/foundry/client/data/documents/note.d.mts +35 -0
- package/src/foundry/client/data/documents/playlist-sound.d.mts +114 -0
- package/src/foundry/client/data/documents/playlist.d.mts +196 -0
- package/src/foundry/client/data/documents/scene.d.mts +228 -0
- package/src/foundry/client/data/documents/setting.d.mts +43 -0
- package/src/foundry/client/data/documents/table-result.d.mts +29 -0
- package/src/foundry/client/data/documents/table.d.mts +310 -0
- package/src/foundry/client/data/documents/tile.d.mts +21 -0
- package/src/foundry/client/data/documents/token.d.mts +342 -0
- package/src/foundry/client/data/documents/user.d.mts +153 -0
- package/src/foundry/client/data/documents/wall.d.mts +19 -0
- package/src/foundry/client/data/index.d.mts +3 -0
- package/src/foundry/client/game.d.mts +702 -0
- package/src/foundry/client/head.d.mts +87 -0
- package/src/foundry/client/hooks.d.mts +1184 -0
- package/src/foundry/client/index.d.mts +13 -0
- package/src/foundry/client/pixi/board.d.mts +927 -0
- package/src/foundry/client/pixi/core/containers/base-canvas-group.d.mts +83 -0
- package/src/foundry/client/pixi/core/containers/cached-container.d.mts +116 -0
- package/src/foundry/client/pixi/core/containers/full-canvas-container.d.mts +35 -0
- package/src/foundry/client/pixi/core/containers/index.d.mts +8 -0
- package/src/foundry/client/pixi/core/containers/point-source-mesh.d.mts +62 -0
- package/src/foundry/client/pixi/core/containers/quad-mesh.d.mts +43 -0
- package/src/foundry/client/pixi/core/containers/quadtree.d.mts +199 -0
- package/src/foundry/client/pixi/core/containers/sprite-mesh.d.mts +326 -0
- package/src/foundry/client/pixi/core/containers/unbound-container.d.mts +21 -0
- package/src/foundry/client/pixi/core/index.d.mts +4 -0
- package/src/foundry/client/pixi/core/interaction/canvas-animation.d.mts +160 -0
- package/src/foundry/client/pixi/core/interaction/control-icon.d.mts +80 -0
- package/src/foundry/client/pixi/core/interaction/index.d.mts +8 -0
- package/src/foundry/client/pixi/core/interaction/mouse-handler.d.mts +264 -0
- package/src/foundry/client/pixi/core/interaction/ping.d.mts +58 -0
- package/src/foundry/client/pixi/core/interaction/pings/chevron.d.mts +73 -0
- package/src/foundry/client/pixi/core/interaction/pings/index.d.mts +2 -0
- package/src/foundry/client/pixi/core/interaction/pings/pulse.d.mts +115 -0
- package/src/foundry/client/pixi/core/interaction/render-flags.d.mts +103 -0
- package/src/foundry/client/pixi/core/interaction/resize-handle.d.mts +52 -0
- package/src/foundry/client/pixi/core/interaction/targets.d.mts +45 -0
- package/src/foundry/client/pixi/core/loader.d.mts +206 -0
- package/src/foundry/client/pixi/core/shapes/index.d.mts +6 -0
- package/src/foundry/client/pixi/core/shapes/limited-angle-polygon.d.mts +119 -0
- package/src/foundry/client/pixi/core/shapes/polygon-helpers.d.mts +31 -0
- package/src/foundry/client/pixi/core/shapes/polygon-mesher.d.mts +110 -0
- package/src/foundry/client/pixi/core/shapes/precise-text.d.mts +27 -0
- package/src/foundry/client/pixi/core/shapes/ray.d.mts +165 -0
- package/src/foundry/client/pixi/core/shapes/source-polygon.d.mts +251 -0
- package/src/foundry/client/pixi/extensions/circle.d.mts +130 -0
- package/src/foundry/client/pixi/extensions/index.d.mts +3 -0
- package/src/foundry/client/pixi/extensions/polygon.d.mts +152 -0
- package/src/foundry/client/pixi/extensions/rectangle.d.mts +226 -0
- package/src/foundry/client/pixi/groups/effects.d.mts +189 -0
- package/src/foundry/client/pixi/groups/environment.d.mts +80 -0
- package/src/foundry/client/pixi/groups/hidden.d.mts +40 -0
- package/src/foundry/client/pixi/groups/index.d.mts +7 -0
- package/src/foundry/client/pixi/groups/interface.d.mts +74 -0
- package/src/foundry/client/pixi/groups/overlay.d.mts +18 -0
- package/src/foundry/client/pixi/groups/primary.d.mts +207 -0
- package/src/foundry/client/pixi/groups/rendered.d.mts +18 -0
- package/src/foundry/client/pixi/index.d.mts +10 -0
- package/src/foundry/client/pixi/layers/base/canvas-layer.d.mts +79 -0
- package/src/foundry/client/pixi/layers/base/index.d.mts +3 -0
- package/src/foundry/client/pixi/layers/base/interaction-layer.d.mts +139 -0
- package/src/foundry/client/pixi/layers/base/placeables-layer.d.mts +598 -0
- package/src/foundry/client/pixi/layers/controls/cursor.d.mts +27 -0
- package/src/foundry/client/pixi/layers/controls/door.d.mts +70 -0
- package/src/foundry/client/pixi/layers/controls/hud.d.mts +114 -0
- package/src/foundry/client/pixi/layers/controls/index.d.mts +5 -0
- package/src/foundry/client/pixi/layers/controls/layer.d.mts +229 -0
- package/src/foundry/client/pixi/layers/controls/ruler.d.mts +316 -0
- package/src/foundry/client/pixi/layers/effects/background-effects.d.mts +34 -0
- package/src/foundry/client/pixi/layers/effects/coloration-effects.d.mts +27 -0
- package/src/foundry/client/pixi/layers/effects/illumination-effects.d.mts +74 -0
- package/src/foundry/client/pixi/layers/effects/index.d.mts +6 -0
- package/src/foundry/client/pixi/layers/effects/visibility.d.mts +194 -0
- package/src/foundry/client/pixi/layers/effects/weather/particles/effect.d.mts +47 -0
- package/src/foundry/client/pixi/layers/effects/weather/particles/index.d.mts +2 -0
- package/src/foundry/client/pixi/layers/effects/weather/particles/leaves.d.mts +20 -0
- package/src/foundry/client/pixi/layers/effects/weather-effects.d.mts +172 -0
- package/src/foundry/client/pixi/layers/grid/highlight.d.mts +32 -0
- package/src/foundry/client/pixi/layers/grid/index.d.mts +2 -0
- package/src/foundry/client/pixi/layers/grid/layer.d.mts +225 -0
- package/src/foundry/client/pixi/layers/index.d.mts +6 -0
- package/src/foundry/client/pixi/layers/masks/depth.d.mts +37 -0
- package/src/foundry/client/pixi/layers/masks/index.d.mts +3 -0
- package/src/foundry/client/pixi/layers/masks/occlusion.d.mts +55 -0
- package/src/foundry/client/pixi/layers/masks/vision.d.mts +85 -0
- package/src/foundry/client/pixi/layers/placeables/drawings.d.mts +92 -0
- package/src/foundry/client/pixi/layers/placeables/index.d.mts +8 -0
- package/src/foundry/client/pixi/layers/placeables/lighting.d.mts +137 -0
- package/src/foundry/client/pixi/layers/placeables/notes.d.mts +99 -0
- package/src/foundry/client/pixi/layers/placeables/sounds.d.mts +129 -0
- package/src/foundry/client/pixi/layers/placeables/templates.d.mts +60 -0
- package/src/foundry/client/pixi/layers/placeables/tiles.d.mts +114 -0
- package/src/foundry/client/pixi/layers/placeables/tokens.d.mts +180 -0
- package/src/foundry/client/pixi/layers/placeables/walls.d.mts +210 -0
- package/src/foundry/client/pixi/perception/clockwise-sweep.d.mts +169 -0
- package/src/foundry/client/pixi/perception/color-manager.d.mts +86 -0
- package/src/foundry/client/pixi/perception/detection-mode.d.mts +196 -0
- package/src/foundry/client/pixi/perception/fog.d.mts +102 -0
- package/src/foundry/client/pixi/perception/index.d.mts +7 -0
- package/src/foundry/client/pixi/perception/perception-manager.d.mts +166 -0
- package/src/foundry/client/pixi/perception/vision-mode.d.mts +197 -0
- package/src/foundry/client/pixi/perception/weiler-atherton-clipping.d.mts +152 -0
- package/src/foundry/client/pixi/placeable.d.mts +586 -0
- package/src/foundry/client/pixi/placeables/drawing.d.mts +292 -0
- package/src/foundry/client/pixi/placeables/index.d.mts +9 -0
- package/src/foundry/client/pixi/placeables/light.d.mts +140 -0
- package/src/foundry/client/pixi/placeables/note.d.mts +114 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/drawing-shape.d.mts +143 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/index.d.mts +5 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/occludable-object.d.mts +175 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/primary-canvas-object.d.mts +159 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/tile-mesh.d.mts +52 -0
- package/src/foundry/client/pixi/placeables/primary-canvas-objects/token-mesh.d.mts +62 -0
- package/src/foundry/client/pixi/placeables/sound.d.mts +133 -0
- package/src/foundry/client/pixi/placeables/template.d.mts +211 -0
- package/src/foundry/client/pixi/placeables/tile.d.mts +284 -0
- package/src/foundry/client/pixi/placeables/token.d.mts +825 -0
- package/src/foundry/client/pixi/placeables/wall.d.mts +275 -0
- package/src/foundry/client/pixi/webgl/extensions/batch-renderer.d.mts +60 -0
- package/src/foundry/client/pixi/webgl/extensions/batch-shader-generator.d.mts +21 -0
- package/src/foundry/client/pixi/webgl/extensions/blend-modes.d.mts +53 -0
- package/src/foundry/client/pixi/webgl/extensions/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/helpers/framebugger-snapshot.d.mts +22 -0
- package/src/foundry/client/pixi/webgl/helpers/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/helpers/smooth-noise.d.mts +61 -0
- package/src/foundry/client/pixi/webgl/helpers/texture-extractor.d.mts +80 -0
- package/src/foundry/client/pixi/webgl/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/shaders/base.d.mts +691 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/lighting.d.mts +642 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/vision.d.mts +216 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/base.d.mts +102 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/effect.d.mts +38 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/fog.d.mts +34 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/index.d.mts +5 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/rain.d.mts +24 -0
- package/src/foundry/client/pixi/webgl/shaders/effects/weather/snow.d.mts +20 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/blur.d.mts +163 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/filters.d.mts +462 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/fxaa.d.mts +74 -0
- package/src/foundry/client/pixi/webgl/shaders/filters/index.d.mts +3 -0
- package/src/foundry/client/pixi/webgl/shaders/index.d.mts +4 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/color-adjustment.d.mts +101 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/fog-of-war.d.mts +16 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/index.d.mts +6 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/inverse-occlusion.d.mts +47 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/invisibility.d.mts +28 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/monochromatic.d.mts +30 -0
- package/src/foundry/client/pixi/webgl/shaders/samplers/occlusion.d.mts +69 -0
- package/src/foundry/client/pixi/workers/index.d.mts +1 -0
- package/src/foundry/client/pixi/workers/texture-worker.d.mts +125 -0
- package/src/foundry/client/tours/canvas-tour.d.mts +9 -0
- package/src/foundry/client/tours/index.d.mts +3 -0
- package/src/foundry/client/tours/setup-tour.d.mts +26 -0
- package/src/foundry/client/tours/sidebar-tour.d.mts +9 -0
- package/src/foundry/client/ui/context.d.mts +213 -0
- package/src/foundry/client/ui/dialog.d.mts +326 -0
- package/src/foundry/client/ui/drag.d.mts +128 -0
- package/src/foundry/client/ui/dragdrop.d.mts +124 -0
- package/src/foundry/client/ui/editor.d.mts +546 -0
- package/src/foundry/client/ui/filepicker.d.mts +477 -0
- package/src/foundry/client/ui/filter.d.mts +148 -0
- package/src/foundry/client/ui/forms.d.mts +85 -0
- package/src/foundry/client/ui/index.d.mts +12 -0
- package/src/foundry/client/ui/notifications.d.mts +136 -0
- package/src/foundry/client/ui/prosemirror.d.mts +171 -0
- package/src/foundry/client/ui/secrets.d.mts +75 -0
- package/src/foundry/client/ui/tabs.d.mts +117 -0
- package/src/foundry/client-esm/applications/_module.d.mts +25 -0
- package/src/foundry/client-esm/applications/_types.d.mts +38 -0
- package/src/foundry/client-esm/applications/api/_module.d.mts +9 -0
- package/src/foundry/client-esm/applications/api/application.d.mts +705 -0
- package/src/foundry/client-esm/applications/api/dialog.d.mts +268 -0
- package/src/foundry/client-esm/applications/api/document-sheet.d.mts +119 -0
- package/src/foundry/client-esm/applications/api/handlebars-application.d.mts +180 -0
- package/src/foundry/client-esm/applications/apps/_module.d.mts +7 -0
- package/src/foundry/client-esm/applications/apps/compendium-art-config.d.mts +53 -0
- package/src/foundry/client-esm/applications/apps/permission-config.d.mts +60 -0
- package/src/foundry/client-esm/applications/dice/_module.d.mts +6 -0
- package/src/foundry/client-esm/applications/dice/roll-resolver.d.mts +98 -0
- package/src/foundry/client-esm/applications/elements/_module.d.mts +16 -0
- package/src/foundry/client-esm/applications/elements/color-picker.d.mts +26 -0
- package/src/foundry/client-esm/applications/elements/document-tags.d.mts +90 -0
- package/src/foundry/client-esm/applications/elements/file-picker.d.mts +62 -0
- package/src/foundry/client-esm/applications/elements/form-element.d.mts +106 -0
- package/src/foundry/client-esm/applications/elements/hue-slider.d.mts +20 -0
- package/src/foundry/client-esm/applications/elements/multi-select.d.mts +95 -0
- package/src/foundry/client-esm/applications/elements/prosemirror-editor.d.mts +53 -0
- package/src/foundry/client-esm/applications/elements/range-picker.d.mts +41 -0
- package/src/foundry/client-esm/applications/elements/string-tags.d.mts +73 -0
- package/src/foundry/client-esm/applications/forms/fields.d.mts +219 -0
- package/src/foundry/client-esm/applications/sheets/_module.d.mts +12 -0
- package/src/foundry/client-esm/applications/sheets/actor-sheet.d.mts +31 -0
- package/src/foundry/client-esm/applications/sheets/ambient-light-config.d.mts +18 -0
- package/src/foundry/client-esm/applications/sheets/ambient-sound-config.d.mts +18 -0
- package/src/foundry/client-esm/applications/sheets/item-sheet.d.mts +22 -0
- package/src/foundry/client-esm/applications/sheets/region-behavior-config.d.mts +13 -0
- package/src/foundry/client-esm/applications/sheets/region-config.d.mts +13 -0
- package/src/foundry/client-esm/applications/sheets/user-config.d.mts +18 -0
- package/src/foundry/client-esm/applications/ui/_module.d.mts +6 -0
- package/src/foundry/client-esm/applications/ui/region-legend.d.mts +12 -0
- package/src/foundry/client-esm/audio/_module.d.mts +13 -0
- package/src/foundry/client-esm/audio/_types.d.mts +1 -0
- package/src/foundry/client-esm/canvas/_module.d.mts +11 -0
- package/src/foundry/client-esm/canvas/edges/_module.d.mts +9 -0
- package/src/foundry/client-esm/canvas/edges/collision.d.mts +93 -0
- package/src/foundry/client-esm/canvas/edges/edge.d.mts +184 -0
- package/src/foundry/client-esm/canvas/edges/edges.d.mts +23 -0
- package/src/foundry/client-esm/canvas/edges/vertex.d.mts +134 -0
- package/src/foundry/client-esm/canvas/regions/_module.d.mts +10 -0
- package/src/foundry/client-esm/canvas/scene-manager.d.mts +1 -0
- package/src/foundry/client-esm/canvas/smaa/blend.d.mts +6 -0
- package/src/foundry/client-esm/canvas/smaa/edges.d.mts +6 -0
- package/src/foundry/client-esm/canvas/smaa/smaa.d.mts +56 -0
- package/src/foundry/client-esm/canvas/smaa/weights.d.mts +6 -0
- package/src/foundry/client-esm/canvas/sources/_module.d.mts +15 -0
- package/src/foundry/client-esm/canvas/sources/base-effect-source.d.mts +243 -0
- package/src/foundry/client-esm/canvas/sources/base-light-source.d.mts +162 -0
- package/src/foundry/client-esm/canvas/sources/global-light-source.d.mts +47 -0
- package/src/foundry/client-esm/canvas/sources/point-darkness-source.d.mts +77 -0
- package/src/foundry/client-esm/canvas/sources/point-effect-source.d.mts +91 -0
- package/src/foundry/client-esm/canvas/sources/point-light-source.d.mts +43 -0
- package/src/foundry/client-esm/canvas/sources/point-movement-source.d.mts +15 -0
- package/src/foundry/client-esm/canvas/sources/point-sound-source.d.mts +29 -0
- package/src/foundry/client-esm/canvas/sources/point-vision-source.d.mts +206 -0
- package/src/foundry/client-esm/canvas/sources/rendered-effect-source.d.mts +328 -0
- package/src/foundry/client-esm/canvas/tokens/_module.d.mts +7 -0
- package/src/foundry/client-esm/client.d.mts +291 -0
- package/src/foundry/client-esm/data/_module.d.mts +8 -0
- package/src/foundry/client-esm/data/client-backend.d.mts +52 -0
- package/src/foundry/client-esm/data/region-behaviors/_module.d.mts +14 -0
- package/src/foundry/client-esm/dice/_module.d.mts +13 -0
- package/src/foundry/client-esm/dice/_types.d.mts +61 -0
- package/src/foundry/client-esm/dice/parser.d.mts +205 -0
- package/src/foundry/client-esm/dice/roll.d.mts +645 -0
- package/src/foundry/client-esm/dice/terms/_module.d.mts +17 -0
- package/src/foundry/client-esm/dice/terms/coin.d.mts +68 -0
- package/src/foundry/client-esm/dice/terms/dice.d.mts +381 -0
- package/src/foundry/client-esm/dice/terms/die.d.mts +241 -0
- package/src/foundry/client-esm/dice/terms/fate.d.mts +50 -0
- package/src/foundry/client-esm/dice/terms/function.d.mts +104 -0
- package/src/foundry/client-esm/dice/terms/numeric.d.mts +56 -0
- package/src/foundry/client-esm/dice/terms/operator.d.mts +55 -0
- package/src/foundry/client-esm/dice/terms/parenthetical.d.mts +105 -0
- package/src/foundry/client-esm/dice/terms/pool.d.mts +278 -0
- package/src/foundry/client-esm/dice/terms/string.d.mts +34 -0
- package/src/foundry/client-esm/dice/terms/term.d.mts +160 -0
- package/src/foundry/client-esm/dice/twister.d.mts +134 -0
- package/src/foundry/client-esm/helpers/_module.d.mts +8 -0
- package/src/foundry/client-esm/helpers/_types.d.mts +51 -0
- package/src/foundry/client-esm/helpers/compendium-art.d.mts +47 -0
- package/src/foundry/clipper/clipper.d.mts +927 -0
- package/src/foundry/clipper/index.d.mts +1 -0
- package/src/foundry/common/abstract/_types.d.mts +274 -0
- package/src/foundry/common/abstract/backend.d.mts +190 -0
- package/src/foundry/common/abstract/data.d.mts +457 -0
- package/src/foundry/common/abstract/document.d.mts +1372 -0
- package/src/foundry/common/abstract/embedded-collection-delta.d.mts +96 -0
- package/src/foundry/common/abstract/embedded-collection.d.mts +252 -0
- package/src/foundry/common/abstract/module.d.mts +13 -0
- package/src/foundry/common/abstract/singleton-collection.d.mts +19 -0
- package/src/foundry/common/abstract/socket.d.mts +36 -0
- package/src/foundry/common/abstract/type-data.d.mts +337 -0
- package/src/foundry/common/config.d.mts +302 -0
- package/src/foundry/common/constants.d.mts +2054 -0
- package/src/foundry/common/data/data.d.mts +667 -0
- package/src/foundry/common/data/fields.d.mts +3388 -0
- package/src/foundry/common/data/module.d.mts +9 -0
- package/src/foundry/common/data/validation-failure.d.mts +174 -0
- package/src/foundry/common/data/validators.d.mts +30 -0
- package/src/foundry/common/documents/_module.d.mts +35 -0
- package/src/foundry/common/documents/_types.d.mts +143 -0
- package/src/foundry/common/documents/active-effect.d.mts +229 -0
- package/src/foundry/common/documents/actor-delta.d.mts +132 -0
- package/src/foundry/common/documents/actor.d.mts +209 -0
- package/src/foundry/common/documents/adventure.d.mts +212 -0
- package/src/foundry/common/documents/ambient-light.d.mts +107 -0
- package/src/foundry/common/documents/ambient-sound.d.mts +142 -0
- package/src/foundry/common/documents/card.d.mts +254 -0
- package/src/foundry/common/documents/cards.d.mts +191 -0
- package/src/foundry/common/documents/chat-message.d.mts +208 -0
- package/src/foundry/common/documents/combat.d.mts +124 -0
- package/src/foundry/common/documents/combatant.d.mts +127 -0
- package/src/foundry/common/documents/drawing.d.mts +255 -0
- package/src/foundry/common/documents/fog-exploration.d.mts +110 -0
- package/src/foundry/common/documents/folder.d.mts +130 -0
- package/src/foundry/common/documents/item.d.mts +181 -0
- package/src/foundry/common/documents/journal-entry-page.d.mts +229 -0
- package/src/foundry/common/documents/journal-entry.d.mts +133 -0
- package/src/foundry/common/documents/macro.d.mts +190 -0
- package/src/foundry/common/documents/measured-template.d.mts +183 -0
- package/src/foundry/common/documents/module.d.mts +35 -0
- package/src/foundry/common/documents/note.d.mts +195 -0
- package/src/foundry/common/documents/playlist-sound.d.mts +131 -0
- package/src/foundry/common/documents/playlist.d.mts +160 -0
- package/src/foundry/common/documents/roll-table.d.mts +153 -0
- package/src/foundry/common/documents/scene.d.mts +395 -0
- package/src/foundry/common/documents/setting.d.mts +88 -0
- package/src/foundry/common/documents/table-result.d.mts +157 -0
- package/src/foundry/common/documents/tile.d.mts +204 -0
- package/src/foundry/common/documents/token.d.mts +515 -0
- package/src/foundry/common/documents/user.d.mts +247 -0
- package/src/foundry/common/documents/wall.d.mts +196 -0
- package/src/foundry/common/grid/_module.d.mts +10 -0
- package/src/foundry/common/grid/base.d.mts +640 -0
- package/src/foundry/common/grid/grid-hex.d.mts +55 -0
- package/src/foundry/common/grid/gridless.d.mts +71 -0
- package/src/foundry/common/grid/hexagonal.d.mts +391 -0
- package/src/foundry/common/grid/square.d.mts +100 -0
- package/src/foundry/common/packages/base-module.d.mts +46 -0
- package/src/foundry/common/packages/base-package.d.mts +677 -0
- package/src/foundry/common/packages/base-system.d.mts +90 -0
- package/src/foundry/common/packages/base-world.d.mts +116 -0
- package/src/foundry/common/packages/module.d.mts +28 -0
- package/src/foundry/common/packages/sub-types.d.mts +42 -0
- package/src/foundry/common/primitives/array.d.mts +56 -0
- package/src/foundry/common/primitives/date.d.mts +24 -0
- package/src/foundry/common/primitives/math.d.mts +103 -0
- package/src/foundry/common/primitives/module.d.mts +8 -0
- package/src/foundry/common/primitives/number.d.mts +91 -0
- package/src/foundry/common/primitives/regex.d.mts +12 -0
- package/src/foundry/common/primitives/regexp.d.mts +12 -0
- package/src/foundry/common/primitives/set.d.mts +105 -0
- package/src/foundry/common/primitives/string.d.mts +58 -0
- package/src/foundry/common/primitives/url.d.mts +18 -0
- package/src/foundry/common/prosemirror/_module.d.mts +82 -0
- package/src/foundry/common/prosemirror/click-handler.d.mts +34 -0
- package/src/foundry/common/prosemirror/content-link-plugin.d.mts +47 -0
- package/src/foundry/common/prosemirror/dirty-plugin.d.mts +13 -0
- package/src/foundry/common/prosemirror/dom-parser.d.mts +9 -0
- package/src/foundry/common/prosemirror/dropdown.d.mts +65 -0
- package/src/foundry/common/prosemirror/extensions.d.mts +12 -0
- package/src/foundry/common/prosemirror/highlight-matches-plugin.d.mts +82 -0
- package/src/foundry/common/prosemirror/image-plugin.d.mts +82 -0
- package/src/foundry/common/prosemirror/index.d.mts +22 -0
- package/src/foundry/common/prosemirror/input-rules.d.mts +34 -0
- package/src/foundry/common/prosemirror/keymaps.d.mts +47 -0
- package/src/foundry/common/prosemirror/menu.d.mts +255 -0
- package/src/foundry/common/prosemirror/paste-transformer.d.mts +22 -0
- package/src/foundry/common/prosemirror/plugin.d.mts +24 -0
- package/src/foundry/common/prosemirror/schema/attribute-capture.d.mts +39 -0
- package/src/foundry/common/prosemirror/schema/core.d.mts +51 -0
- package/src/foundry/common/prosemirror/schema/image-link-node.d.mts +29 -0
- package/src/foundry/common/prosemirror/schema/image-node.d.mts +19 -0
- package/src/foundry/common/prosemirror/schema/index.d.mts +12 -0
- package/src/foundry/common/prosemirror/schema/link-mark.d.mts +30 -0
- package/src/foundry/common/prosemirror/schema/lists.d.mts +55 -0
- package/src/foundry/common/prosemirror/schema/marks.d.mts +44 -0
- package/src/foundry/common/prosemirror/schema/other.d.mts +149 -0
- package/src/foundry/common/prosemirror/schema/schema-definition.d.mts +39 -0
- package/src/foundry/common/prosemirror/schema/secret-node.d.mts +27 -0
- package/src/foundry/common/prosemirror/schema/tables.d.mts +106 -0
- package/src/foundry/common/prosemirror/schema/utils.d.mts +37 -0
- package/src/foundry/common/prosemirror/schema.d.mts +138 -0
- package/src/foundry/common/prosemirror/string-serializer.d.mts +120 -0
- package/src/foundry/common/prosemirror/util.d.mts +43 -0
- package/src/foundry/common/types.d.mts +332 -0
- package/src/foundry/common/utils/bitmask.d.mts +110 -0
- package/src/foundry/common/utils/collection.d.mts +176 -0
- package/src/foundry/common/utils/color.d.mts +291 -0
- package/src/foundry/common/utils/event-emitter.d.mts +62 -0
- package/src/foundry/common/utils/geometry.d.mts +198 -0
- package/src/foundry/common/utils/helpers.d.mts +752 -0
- package/src/foundry/common/utils/http.d.mts +52 -0
- package/src/foundry/common/utils/iterable-weak-map.d.mts +80 -0
- package/src/foundry/common/utils/iterable-weak-set.d.mts +47 -0
- package/src/foundry/common/utils/logging.d.mts +42 -0
- package/src/foundry/common/utils/module.d.mts +18 -0
- package/src/foundry/common/utils/semaphore.d.mts +82 -0
- package/src/foundry/common/utils/string-tree.d.mts +95 -0
- package/src/foundry/common/utils/word-tree.d.mts +66 -0
- package/src/foundry/index.d.mts +5 -0
- package/src/foundry/public/index.d.mts +1 -0
- package/src/foundry/public/scripts/earcut-edges/earcut-edges.d.mts +11 -0
- package/src/foundry/public/scripts/earcut-edges/index.d.mts +1 -0
- package/src/foundry/public/scripts/index.d.mts +1 -0
- package/src/index.d.mts +2 -0
- package/src/types/augments/index.d.mts +4 -0
- package/src/types/augments/pixi.d.mts +38 -0
- package/src/types/augments/simple-peer.d.mts +13 -0
- package/src/types/augments/socket.io-client.d.mts +12 -0
- package/src/types/augments/tinyMCE.d.mts +72 -0
- package/src/types/config.d.mts +331 -0
- package/src/types/configuredDocuments.d.mts +103 -0
- package/src/types/helperTypes.d.mts +261 -0
- package/src/types/index.d.mts +4 -0
- package/src/types/utils.d.mts +406 -0
- package/index-lenient.d.ts +0 -10
- package/index.d.ts +0 -4
- package/src/foundry/client/apps/app.d.ts +0 -560
- package/src/foundry/client/apps/av/av-config.d.ts +0 -85
- package/src/foundry/client/apps/av/cameras.d.ts +0 -174
- package/src/foundry/client/apps/av/index.d.ts +0 -3
- package/src/foundry/client/apps/form.d.ts +0 -384
- package/src/foundry/client/apps/forms/actor.d.ts +0 -192
- package/src/foundry/client/apps/forms/card-config.d.ts +0 -51
- package/src/foundry/client/apps/forms/cards-config.d.ts +0 -128
- package/src/foundry/client/apps/forms/combat-config.d.ts +0 -41
- package/src/foundry/client/apps/forms/combatant-config.d.ts +0 -49
- package/src/foundry/client/apps/forms/effect-config.d.ts +0 -65
- package/src/foundry/client/apps/forms/folder-config.d.ts +0 -63
- package/src/foundry/client/apps/forms/grid-config.d.ts +0 -151
- package/src/foundry/client/apps/forms/image-popout.d.ts +0 -166
- package/src/foundry/client/apps/forms/index.d.ts +0 -20
- package/src/foundry/client/apps/forms/item.d.ts +0 -71
- package/src/foundry/client/apps/forms/journal-sheet.d.ts +0 -107
- package/src/foundry/client/apps/forms/macro-config.d.ts +0 -71
- package/src/foundry/client/apps/forms/measure-template.d.ts +0 -53
- package/src/foundry/client/apps/forms/permission.d.ts +0 -58
- package/src/foundry/client/apps/forms/playlist-config.d.ts +0 -43
- package/src/foundry/client/apps/forms/playlist-sound-config.d.ts +0 -61
- package/src/foundry/client/apps/forms/roll-table-config.d.ts +0 -175
- package/src/foundry/client/apps/forms/scene-config.d.ts +0 -148
- package/src/foundry/client/apps/forms/sheet-config.d.ts +0 -184
- package/src/foundry/client/apps/forms/user-config.d.ts +0 -74
- package/src/foundry/client/apps/hud/chatbubble.d.ts +0 -89
- package/src/foundry/client/apps/hud/container.d.ts +0 -46
- package/src/foundry/client/apps/hud/controls.d.ts +0 -156
- package/src/foundry/client/apps/hud/hotbar.d.ts +0 -143
- package/src/foundry/client/apps/hud/hud.d.ts +0 -84
- package/src/foundry/client/apps/hud/index.d.ts +0 -9
- package/src/foundry/client/apps/hud/menu.d.ts +0 -71
- package/src/foundry/client/apps/hud/navigation.d.ts +0 -110
- package/src/foundry/client/apps/hud/pause.d.ts +0 -20
- package/src/foundry/client/apps/hud/players.d.ts +0 -55
- package/src/foundry/client/apps/i18n.d.ts +0 -136
- package/src/foundry/client/apps/index.d.ts +0 -9
- package/src/foundry/client/apps/placeables/drawing-config.d.ts +0 -99
- package/src/foundry/client/apps/placeables/drawing-hud.d.ts +0 -32
- package/src/foundry/client/apps/placeables/index.d.ts +0 -10
- package/src/foundry/client/apps/placeables/light-config.d.ts +0 -95
- package/src/foundry/client/apps/placeables/note-config.d.ts +0 -57
- package/src/foundry/client/apps/placeables/sound-config.d.ts +0 -47
- package/src/foundry/client/apps/placeables/tile-config.d.ts +0 -55
- package/src/foundry/client/apps/placeables/tile-hud.d.ts +0 -37
- package/src/foundry/client/apps/placeables/token-config.d.ts +0 -226
- package/src/foundry/client/apps/placeables/token-hud.d.ts +0 -140
- package/src/foundry/client/apps/placeables/wall-config.d.ts +0 -75
- package/src/foundry/client/apps/sidebar/apps/chat-popout.d.ts +0 -34
- package/src/foundry/client/apps/sidebar/apps/client-settings.d.ts +0 -116
- package/src/foundry/client/apps/sidebar/apps/compendium.d.ts +0 -86
- package/src/foundry/client/apps/sidebar/apps/controls-reference.d.ts +0 -30
- package/src/foundry/client/apps/sidebar/apps/index.d.ts +0 -10
- package/src/foundry/client/apps/sidebar/apps/invitation-links.d.ts +0 -37
- package/src/foundry/client/apps/sidebar/apps/keybindings-config.d.ts +0 -247
- package/src/foundry/client/apps/sidebar/apps/module-management.d.ts +0 -120
- package/src/foundry/client/apps/sidebar/apps/permission-config.d.ts +0 -64
- package/src/foundry/client/apps/sidebar/apps/support-details.d.ts +0 -76
- package/src/foundry/client/apps/sidebar/apps/world-config.d.ts +0 -77
- package/src/foundry/client/apps/sidebar/index.d.ts +0 -5
- package/src/foundry/client/apps/sidebar/sidebar.d.ts +0 -102
- package/src/foundry/client/apps/sidebar/tab-base.d.ts +0 -68
- package/src/foundry/client/apps/sidebar/tab-directory.d.ts +0 -236
- package/src/foundry/client/apps/sidebar/tabs/actors-directory.d.ts +0 -16
- package/src/foundry/client/apps/sidebar/tabs/cards-directory.d.ts +0 -6
- package/src/foundry/client/apps/sidebar/tabs/chat-log.d.ts +0 -351
- package/src/foundry/client/apps/sidebar/tabs/combat-tracker.d.ts +0 -205
- package/src/foundry/client/apps/sidebar/tabs/compendium-directory.d.ts +0 -77
- package/src/foundry/client/apps/sidebar/tabs/index.d.ts +0 -12
- package/src/foundry/client/apps/sidebar/tabs/items-directory.d.ts +0 -10
- package/src/foundry/client/apps/sidebar/tabs/journal-directory.d.ts +0 -11
- package/src/foundry/client/apps/sidebar/tabs/macros-directory.d.ts +0 -12
- package/src/foundry/client/apps/sidebar/tabs/playlists-directory.d.ts +0 -306
- package/src/foundry/client/apps/sidebar/tabs/roll-table-directory.d.ts +0 -9
- package/src/foundry/client/apps/sidebar/tabs/scenes-directory.d.ts +0 -18
- package/src/foundry/client/apps/sidebar/tabs/settings.d.ts +0 -88
- package/src/foundry/client/apps/templates.d.ts +0 -425
- package/src/foundry/client/audio/audio.d.ts +0 -343
- package/src/foundry/client/audio/container.d.ts +0 -175
- package/src/foundry/client/audio/index.d.ts +0 -3
- package/src/foundry/client/audio/sound.d.ts +0 -303
- package/src/foundry/client/av/client.d.ts +0 -158
- package/src/foundry/client/av/clients/index.d.ts +0 -1
- package/src/foundry/client/av/clients/simplepeer.d.ts +0 -151
- package/src/foundry/client/av/index.d.ts +0 -4
- package/src/foundry/client/av/master.d.ts +0 -187
- package/src/foundry/client/av/settings.d.ts +0 -236
- package/src/foundry/client/config.d.ts +0 -1425
- package/src/foundry/client/core/gamepad.d.ts +0 -53
- package/src/foundry/client/core/hooks.d.ts +0 -967
- package/src/foundry/client/core/image.d.ts +0 -129
- package/src/foundry/client/core/index.d.ts +0 -13
- package/src/foundry/client/core/keybindings.d.ts +0 -298
- package/src/foundry/client/core/keyboard.d.ts +0 -247
- package/src/foundry/client/core/mouse.d.ts +0 -18
- package/src/foundry/client/core/nue.d.ts +0 -34
- package/src/foundry/client/core/settings.d.ts +0 -222
- package/src/foundry/client/core/socket.d.ts +0 -46
- package/src/foundry/client/core/sorting.d.ts +0 -78
- package/src/foundry/client/core/time.d.ts +0 -67
- package/src/foundry/client/core/utils.d.ts +0 -33
- package/src/foundry/client/core/video.d.ts +0 -65
- package/src/foundry/client/data/abstract/canvas-document.d.ts +0 -70
- package/src/foundry/client/data/abstract/client-backend.d.ts +0 -206
- package/src/foundry/client/data/abstract/client-document.d.ts +0 -439
- package/src/foundry/client/data/abstract/document-collection.d.ts +0 -192
- package/src/foundry/client/data/abstract/index.d.ts +0 -5
- package/src/foundry/client/data/abstract/world-collection.d.ts +0 -167
- package/src/foundry/client/data/collections/actors.d.ts +0 -35
- package/src/foundry/client/data/collections/cards.d.ts +0 -8
- package/src/foundry/client/data/collections/combats.d.ts +0 -43
- package/src/foundry/client/data/collections/compendium.d.ts +0 -321
- package/src/foundry/client/data/collections/fog.d.ts +0 -7
- package/src/foundry/client/data/collections/folder.d.ts +0 -27
- package/src/foundry/client/data/collections/index.d.ts +0 -15
- package/src/foundry/client/data/collections/items.d.ts +0 -10
- package/src/foundry/client/data/collections/journal.d.ts +0 -26
- package/src/foundry/client/data/collections/macros.d.ts +0 -26
- package/src/foundry/client/data/collections/messages.d.ts +0 -39
- package/src/foundry/client/data/collections/playlists.d.ts +0 -41
- package/src/foundry/client/data/collections/scenes.d.ts +0 -62
- package/src/foundry/client/data/collections/settings.d.ts +0 -25
- package/src/foundry/client/data/collections/tables.d.ts +0 -17
- package/src/foundry/client/data/collections/users.d.ts +0 -43
- package/src/foundry/client/data/documents/active-effect.d.ts +0 -172
- package/src/foundry/client/data/documents/actor.d.ts +0 -231
- package/src/foundry/client/data/documents/ambient-light.d.ts +0 -18
- package/src/foundry/client/data/documents/ambient-sound.d.ts +0 -9
- package/src/foundry/client/data/documents/card.d.ts +0 -133
- package/src/foundry/client/data/documents/cards.d.ts +0 -376
- package/src/foundry/client/data/documents/chat-message.d.ts +0 -267
- package/src/foundry/client/data/documents/combat.d.ts +0 -227
- package/src/foundry/client/data/documents/combatant.d.ts +0 -104
- package/src/foundry/client/data/documents/drawing.d.ts +0 -19
- package/src/foundry/client/data/documents/fog-exploration.d.ts +0 -64
- package/src/foundry/client/data/documents/folder.d.ts +0 -115
- package/src/foundry/client/data/documents/index.d.ts +0 -27
- package/src/foundry/client/data/documents/item.d.ts +0 -59
- package/src/foundry/client/data/documents/journal-entry.d.ts +0 -71
- package/src/foundry/client/data/documents/macro.d.ts +0 -60
- package/src/foundry/client/data/documents/measured-template.d.ts +0 -21
- package/src/foundry/client/data/documents/note.d.ts +0 -19
- package/src/foundry/client/data/documents/playlist-sound.d.ts +0 -117
- package/src/foundry/client/data/documents/playlist.d.ts +0 -192
- package/src/foundry/client/data/documents/scene.d.ts +0 -465
- package/src/foundry/client/data/documents/setting.d.ts +0 -35
- package/src/foundry/client/data/documents/table-result.d.ts +0 -30
- package/src/foundry/client/data/documents/table.d.ts +0 -220
- package/src/foundry/client/data/documents/tile.d.ts +0 -13
- package/src/foundry/client/data/documents/token.d.ts +0 -281
- package/src/foundry/client/data/documents/user.d.ts +0 -155
- package/src/foundry/client/data/documents/wall.d.ts +0 -9
- package/src/foundry/client/data/index.d.ts +0 -3
- package/src/foundry/client/dice/dice/coin.d.ts +0 -49
- package/src/foundry/client/dice/dice/die.d.ts +0 -230
- package/src/foundry/client/dice/dice/fate.d.ts +0 -37
- package/src/foundry/client/dice/dice/index.d.ts +0 -3
- package/src/foundry/client/dice/index.d.ts +0 -5
- package/src/foundry/client/dice/roll.d.ts +0 -495
- package/src/foundry/client/dice/term.d.ts +0 -123
- package/src/foundry/client/dice/terms/dice.d.ts +0 -277
- package/src/foundry/client/dice/terms/index.d.ts +0 -7
- package/src/foundry/client/dice/terms/math.d.ts +0 -69
- package/src/foundry/client/dice/terms/numeric.d.ts +0 -53
- package/src/foundry/client/dice/terms/operator.d.ts +0 -18
- package/src/foundry/client/dice/terms/parenthetical.d.ts +0 -51
- package/src/foundry/client/dice/terms/pool.d.ts +0 -235
- package/src/foundry/client/dice/terms/string.d.ts +0 -31
- package/src/foundry/client/dice/twister.d.ts +0 -134
- package/src/foundry/client/game.d.ts +0 -682
- package/src/foundry/client/head.d.ts +0 -44
- package/src/foundry/client/index.d.ts +0 -12
- package/src/foundry/client/pixi/board.d.ts +0 -632
- package/src/foundry/client/pixi/core/containers/cached-container.d.ts +0 -64
- package/src/foundry/client/pixi/core/containers/index.d.ts +0 -3
- package/src/foundry/client/pixi/core/containers/quadtree.d.ts +0 -166
- package/src/foundry/client/pixi/core/containers/sampler-mesh.d.ts +0 -22
- package/src/foundry/client/pixi/core/culling.d.ts +0 -37
- package/src/foundry/client/pixi/core/index.d.ts +0 -5
- package/src/foundry/client/pixi/core/interaction/canvas-animation.d.ts +0 -148
- package/src/foundry/client/pixi/core/interaction/control-icon.d.ts +0 -58
- package/src/foundry/client/pixi/core/interaction/index.d.ts +0 -5
- package/src/foundry/client/pixi/core/interaction/mouse-handler.d.ts +0 -323
- package/src/foundry/client/pixi/core/interaction/resize-handle.d.ts +0 -48
- package/src/foundry/client/pixi/core/interaction/targets.d.ts +0 -51
- package/src/foundry/client/pixi/core/loader.d.ts +0 -157
- package/src/foundry/client/pixi/core/shapes/index.d.ts +0 -5
- package/src/foundry/client/pixi/core/shapes/normalized-rectangle.d.ts +0 -31
- package/src/foundry/client/pixi/core/shapes/polygon-helpers.d.ts +0 -263
- package/src/foundry/client/pixi/core/shapes/precise-text.d.ts +0 -18
- package/src/foundry/client/pixi/core/shapes/ray.d.ts +0 -200
- package/src/foundry/client/pixi/core/shapes/source-polygon.d.ts +0 -110
- package/src/foundry/client/pixi/groups/effects.d.ts +0 -29
- package/src/foundry/client/pixi/groups/index.d.ts +0 -3
- package/src/foundry/client/pixi/groups/interface.d.ts +0 -27
- package/src/foundry/client/pixi/groups/primary.d.ts +0 -40
- package/src/foundry/client/pixi/index.d.ts +0 -10
- package/src/foundry/client/pixi/layer.d.ts +0 -105
- package/src/foundry/client/pixi/layers/controls/cursor.d.ts +0 -27
- package/src/foundry/client/pixi/layers/controls/door.d.ts +0 -67
- package/src/foundry/client/pixi/layers/controls/hud.d.ts +0 -117
- package/src/foundry/client/pixi/layers/controls/index.d.ts +0 -4
- package/src/foundry/client/pixi/layers/controls/ruler.d.ts +0 -207
- package/src/foundry/client/pixi/layers/controls.d.ts +0 -144
- package/src/foundry/client/pixi/layers/drawings.d.ts +0 -116
- package/src/foundry/client/pixi/layers/effects/effect.d.ts +0 -133
- package/src/foundry/client/pixi/layers/effects/index.d.ts +0 -4
- package/src/foundry/client/pixi/layers/effects/leaves.d.ts +0 -79
- package/src/foundry/client/pixi/layers/effects/rain.d.ts +0 -107
- package/src/foundry/client/pixi/layers/effects/snow.d.ts +0 -62
- package/src/foundry/client/pixi/layers/effects.d.ts +0 -61
- package/src/foundry/client/pixi/layers/grid/grid.d.ts +0 -171
- package/src/foundry/client/pixi/layers/grid/hex.d.ts +0 -118
- package/src/foundry/client/pixi/layers/grid/highlight.d.ts +0 -28
- package/src/foundry/client/pixi/layers/grid/index.d.ts +0 -4
- package/src/foundry/client/pixi/layers/grid/square.d.ts +0 -48
- package/src/foundry/client/pixi/layers/grid.d.ts +0 -204
- package/src/foundry/client/pixi/layers/index.d.ts +0 -15
- package/src/foundry/client/pixi/layers/lighting.d.ts +0 -229
- package/src/foundry/client/pixi/layers/map.d.ts +0 -263
- package/src/foundry/client/pixi/layers/notes.d.ts +0 -64
- package/src/foundry/client/pixi/layers/sight.d.ts +0 -313
- package/src/foundry/client/pixi/layers/sounds.d.ts +0 -112
- package/src/foundry/client/pixi/layers/templates.d.ts +0 -51
- package/src/foundry/client/pixi/layers/tokens.d.ts +0 -169
- package/src/foundry/client/pixi/layers/walls.d.ts +0 -321
- package/src/foundry/client/pixi/perception/clockwise-sweep.d.ts +0 -406
- package/src/foundry/client/pixi/perception/index.d.ts +0 -2
- package/src/foundry/client/pixi/perception/perception-manager.d.ts +0 -107
- package/src/foundry/client/pixi/placeable.d.ts +0 -414
- package/src/foundry/client/pixi/placeables/drawing.d.ts +0 -289
- package/src/foundry/client/pixi/placeables/index.d.ts +0 -8
- package/src/foundry/client/pixi/placeables/light.d.ts +0 -126
- package/src/foundry/client/pixi/placeables/note.d.ts +0 -67
- package/src/foundry/client/pixi/placeables/sound.d.ts +0 -131
- package/src/foundry/client/pixi/placeables/template.d.ts +0 -153
- package/src/foundry/client/pixi/placeables/tile.d.ts +0 -315
- package/src/foundry/client/pixi/placeables/token.d.ts +0 -722
- package/src/foundry/client/pixi/placeables/wall.d.ts +0 -268
- package/src/foundry/client/pixi/placeables.d.ts +0 -520
- package/src/foundry/client/pixi/sources/base-source.d.ts +0 -145
- package/src/foundry/client/pixi/sources/index.d.ts +0 -4
- package/src/foundry/client/pixi/sources/light-source.d.ts +0 -413
- package/src/foundry/client/pixi/sources/sound-source.d.ts +0 -45
- package/src/foundry/client/pixi/sources/vision-source.d.ts +0 -123
- package/src/foundry/client/pixi/webgl/base.d.ts +0 -69
- package/src/foundry/client/pixi/webgl/blend_modes.d.ts +0 -33
- package/src/foundry/client/pixi/webgl/filters.d.ts +0 -182
- package/src/foundry/client/pixi/webgl/index.d.ts +0 -5
- package/src/foundry/client/pixi/webgl/lighting.d.ts +0 -480
- package/src/foundry/client/pixi/webgl/sampler.d.ts +0 -19
- package/src/foundry/client/ui/context.d.ts +0 -136
- package/src/foundry/client/ui/dialog.d.ts +0 -286
- package/src/foundry/client/ui/drag.d.ts +0 -105
- package/src/foundry/client/ui/dragdrop.d.ts +0 -118
- package/src/foundry/client/ui/editor.d.ts +0 -321
- package/src/foundry/client/ui/filepicker.d.ts +0 -510
- package/src/foundry/client/ui/filter.d.ts +0 -106
- package/src/foundry/client/ui/forms.d.ts +0 -47
- package/src/foundry/client/ui/index.d.ts +0 -10
- package/src/foundry/client/ui/notifications.d.ts +0 -110
- package/src/foundry/client/ui/tabs.d.ts +0 -103
- package/src/foundry/common/abstract/backend.mjs.d.ts +0 -253
- package/src/foundry/common/abstract/data.mjs.d.ts +0 -316
- package/src/foundry/common/abstract/document.mjs.d.ts +0 -838
- package/src/foundry/common/abstract/embedded-collection.mjs.d.ts +0 -79
- package/src/foundry/common/abstract/module.mjs.d.ts +0 -6
- package/src/foundry/common/config.mjs/index.d.ts +0 -1
- package/src/foundry/common/config.mjs/releaseData.d.ts +0 -100
- package/src/foundry/common/constants.mjs.d.ts +0 -940
- package/src/foundry/common/data/data.mjs/activeEffectData.d.ts +0 -168
- package/src/foundry/common/data/data.mjs/actorData.d.ts +0 -219
- package/src/foundry/common/data/data.mjs/adventureData.d.ts +0 -166
- package/src/foundry/common/data/data.mjs/ambientLightData.d.ts +0 -154
- package/src/foundry/common/data/data.mjs/ambientSoundData.d.ts +0 -195
- package/src/foundry/common/data/data.mjs/animationData.d.ts +0 -91
- package/src/foundry/common/data/data.mjs/cardData.d.ts +0 -264
- package/src/foundry/common/data/data.mjs/cardFaceData.d.ts +0 -67
- package/src/foundry/common/data/data.mjs/cardsData.d.ts +0 -237
- package/src/foundry/common/data/data.mjs/chatMessageData.d.ts +0 -220
- package/src/foundry/common/data/data.mjs/chatSpeakerData.d.ts +0 -80
- package/src/foundry/common/data/data.mjs/combatData.d.ts +0 -149
- package/src/foundry/common/data/data.mjs/combatantData.d.ts +0 -136
- package/src/foundry/common/data/data.mjs/darknessActivation.d.ts +0 -55
- package/src/foundry/common/data/data.mjs/drawingData.d.ts +0 -407
- package/src/foundry/common/data/data.mjs/effectChangeData.d.ts +0 -80
- package/src/foundry/common/data/data.mjs/effectDurationData.d.ts +0 -109
- package/src/foundry/common/data/data.mjs/fogExplorationData.d.ts +0 -115
- package/src/foundry/common/data/data.mjs/folderData.d.ts +0 -155
- package/src/foundry/common/data/data.mjs/index.d.ts +0 -31
- package/src/foundry/common/data/data.mjs/itemData.d.ts +0 -184
- package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +0 -132
- package/src/foundry/common/data/data.mjs/lightData.d.ts +0 -227
- package/src/foundry/common/data/data.mjs/macroData.d.ts +0 -199
- package/src/foundry/common/data/data.mjs/measuredTemplateData.d.ts +0 -212
- package/src/foundry/common/data/data.mjs/noteData.d.ts +0 -233
- package/src/foundry/common/data/data.mjs/playlistData.d.ts +0 -201
- package/src/foundry/common/data/data.mjs/playlistSoundData.d.ts +0 -159
- package/src/foundry/common/data/data.mjs/prototypeTokenData.d.ts +0 -75
- package/src/foundry/common/data/data.mjs/rollTableData.d.ts +0 -189
- package/src/foundry/common/data/data.mjs/sceneData.d.ts +0 -665
- package/src/foundry/common/data/data.mjs/settingData.d.ts +0 -86
- package/src/foundry/common/data/data.mjs/tableResultData.d.ts +0 -167
- package/src/foundry/common/data/data.mjs/tileData.d.ts +0 -246
- package/src/foundry/common/data/data.mjs/tileOcclusion.d.ts +0 -62
- package/src/foundry/common/data/data.mjs/tokenBarData.d.ts +0 -47
- package/src/foundry/common/data/data.mjs/tokenData.d.ts +0 -505
- package/src/foundry/common/data/data.mjs/userData.d.ts +0 -177
- package/src/foundry/common/data/data.mjs/videoData.d.ts +0 -70
- package/src/foundry/common/data/data.mjs/wallData.d.ts +0 -222
- package/src/foundry/common/data/fields.mjs.d.ts +0 -526
- package/src/foundry/common/data/module.mjs.d.ts +0 -3
- package/src/foundry/common/data/validators.mjs.d.ts +0 -56
- package/src/foundry/common/documents.mjs/baseActiveEffect.d.ts +0 -44
- package/src/foundry/common/documents.mjs/baseActor.d.ts +0 -68
- package/src/foundry/common/documents.mjs/baseAdventure.d.ts +0 -38
- package/src/foundry/common/documents.mjs/baseAmbientLight.d.ts +0 -31
- package/src/foundry/common/documents.mjs/baseAmbientSound.d.ts +0 -29
- package/src/foundry/common/documents.mjs/baseCard.d.ts +0 -58
- package/src/foundry/common/documents.mjs/baseCards.d.ts +0 -39
- package/src/foundry/common/documents.mjs/baseChatMessage.d.ts +0 -49
- package/src/foundry/common/documents.mjs/baseCombat.d.ts +0 -40
- package/src/foundry/common/documents.mjs/baseCombatant.d.ts +0 -48
- package/src/foundry/common/documents.mjs/baseDrawing.d.ts +0 -54
- package/src/foundry/common/documents.mjs/baseFogExploration.d.ts +0 -41
- package/src/foundry/common/documents.mjs/baseFolder.d.ts +0 -30
- package/src/foundry/common/documents.mjs/baseItem.d.ts +0 -57
- package/src/foundry/common/documents.mjs/baseJournalEntry.d.ts +0 -26
- package/src/foundry/common/documents.mjs/baseMacro.d.ts +0 -42
- package/src/foundry/common/documents.mjs/baseMeasuredTemplate.d.ts +0 -66
- package/src/foundry/common/documents.mjs/baseNote.d.ts +0 -39
- package/src/foundry/common/documents.mjs/basePlaylist.d.ts +0 -32
- package/src/foundry/common/documents.mjs/basePlaylistSound.d.ts +0 -37
- package/src/foundry/common/documents.mjs/baseRollTable.d.ts +0 -31
- package/src/foundry/common/documents.mjs/baseScene.d.ts +0 -120
- package/src/foundry/common/documents.mjs/baseSetting.d.ts +0 -38
- package/src/foundry/common/documents.mjs/baseTableResult.d.ts +0 -52
- package/src/foundry/common/documents.mjs/baseTile.d.ts +0 -29
- package/src/foundry/common/documents.mjs/baseToken.d.ts +0 -44
- package/src/foundry/common/documents.mjs/baseUser.d.ts +0 -102
- package/src/foundry/common/documents.mjs/baseWall.d.ts +0 -43
- package/src/foundry/common/documents.mjs/index.d.ts +0 -28
- package/src/foundry/common/module.mjs.d.ts +0 -114
- package/src/foundry/common/packages.mjs/index.d.ts +0 -8
- package/src/foundry/common/packages.mjs/moduleData.d.ts +0 -55
- package/src/foundry/common/packages.mjs/packageAuthorData.d.ts +0 -58
- package/src/foundry/common/packages.mjs/packageCompendiumData.d.ts +0 -88
- package/src/foundry/common/packages.mjs/packageData.d.ts +0 -319
- package/src/foundry/common/packages.mjs/packageDependencyData.d.ts +0 -69
- package/src/foundry/common/packages.mjs/packageLanguageData.d.ts +0 -75
- package/src/foundry/common/packages.mjs/systemData.d.ts +0 -58
- package/src/foundry/common/packages.mjs/tagPackageAvailability.d.ts +0 -9
- package/src/foundry/common/packages.mjs/worldData.d.ts +0 -76
- package/src/foundry/common/types.mjs.d.ts +0 -299
- package/src/foundry/common/utils/collection.mjs.d.ts +0 -151
- package/src/foundry/common/utils/geometry.mjs.d.ts +0 -148
- package/src/foundry/common/utils/helpers.mjs.d.ts +0 -498
- package/src/foundry/common/utils/http.mjs.d.ts +0 -52
- package/src/foundry/common/utils/module.mjs.d.ts +0 -5
- package/src/foundry/common/utils/primitives.mjs.d.ts +0 -287
- package/src/foundry/common/utils/semaphore.mjs.d.ts +0 -83
- package/src/foundry/index.d.ts +0 -3
- package/src/foundry/templates/index.d.ts +0 -1
- package/src/foundry/templates/views/layouts/main.hbs.d.ts +0 -11
- package/src/index.d.ts +0 -2
- package/src/types/augments/index.d.ts +0 -6
- package/src/types/augments/pixiGraphicsSmooth.d.ts +0 -7
- package/src/types/augments/pixiLegacyGraphics.d.ts +0 -7
- package/src/types/augments/pixiParticles.d.ts +0 -7
- package/src/types/augments/simple-peer.d.ts +0 -13
- package/src/types/augments/socket.io-client.d.ts +0 -12
- package/src/types/augments/tinyMCE.d.ts +0 -82
- package/src/types/config.d.ts +0 -183
- package/src/types/helperTypes.d.ts +0 -151
- package/src/types/index.d.ts +0 -3
- package/src/types/utils.d.ts +0 -143
- /package/src/foundry/client/apps/av/{camera-popout.d.ts → camera-popout.d.mts} +0 -0
- /package/src/foundry/client/{tail.d.ts → tail.d.mts} +0 -0
@@ -1,526 +0,0 @@
|
|
1
|
-
import { DOCUMENT_PERMISSION_LEVELS } from '../constants.mjs';
|
2
|
-
import { hasImageExtension, isColorString, isJSON } from './validators.mjs';
|
3
|
-
import { Document } from '../abstract/module.mjs';
|
4
|
-
import { FieldReturnType } from '../../../types/helperTypes';
|
5
|
-
|
6
|
-
/**
|
7
|
-
* A required boolean field which may be used in a Document.
|
8
|
-
*/
|
9
|
-
export const BOOLEAN_FIELD: BooleanField;
|
10
|
-
/**
|
11
|
-
* Property type: `boolean`
|
12
|
-
* Constructor type: `boolean | null | undefined`
|
13
|
-
* Default: `false`
|
14
|
-
*/
|
15
|
-
interface BooleanField extends DocumentField<boolean> {
|
16
|
-
type: typeof Boolean;
|
17
|
-
required: true;
|
18
|
-
default: false;
|
19
|
-
}
|
20
|
-
|
21
|
-
/**
|
22
|
-
* A standard string color field which may be used in a Document.
|
23
|
-
*/
|
24
|
-
export const COLOR_FIELD: ColorField;
|
25
|
-
/**
|
26
|
-
* Property type: `string | null | undefined`
|
27
|
-
* Constructor type: `string | null | undefined`
|
28
|
-
*/
|
29
|
-
interface ColorField extends DocumentField<string> {
|
30
|
-
type: typeof String;
|
31
|
-
required: false;
|
32
|
-
nullable: true;
|
33
|
-
validate: typeof isColorString;
|
34
|
-
validationError: '{name} {field} "{value}" is not a valid hexadecimal color string';
|
35
|
-
}
|
36
|
-
|
37
|
-
/**
|
38
|
-
* A standard string field for an image file path which may be used in a Document.
|
39
|
-
*/
|
40
|
-
export const IMAGE_FIELD: ImageField;
|
41
|
-
/**
|
42
|
-
* Property type: `string | null | undefined`
|
43
|
-
* Constructor type: `string | null | undefined`
|
44
|
-
*/
|
45
|
-
interface ImageField extends DocumentField<string> {
|
46
|
-
type: typeof String;
|
47
|
-
required: false;
|
48
|
-
nullable: true;
|
49
|
-
validate: typeof hasImageExtension;
|
50
|
-
validationError: '{name} {field} "{value}" does not have a valid image file extension';
|
51
|
-
}
|
52
|
-
|
53
|
-
/**
|
54
|
-
* A standard string field for a video or image file path may be used in a Document.
|
55
|
-
*/
|
56
|
-
export const VIDEO_FIELD: VideoField;
|
57
|
-
/**
|
58
|
-
* Property type: `string | null | undefined`
|
59
|
-
* Constructor type: `string | null | undefined`
|
60
|
-
*/
|
61
|
-
interface VideoField extends DocumentField<string> {
|
62
|
-
type: typeof String;
|
63
|
-
required: false;
|
64
|
-
nullable: true;
|
65
|
-
validate: (src: string | null) => boolean;
|
66
|
-
validationError: '{name} {field} "{value}" does not have a valid image or video file extension';
|
67
|
-
}
|
68
|
-
|
69
|
-
/**
|
70
|
-
* A standard string field for an audio file path which may be used in a Document.
|
71
|
-
*/
|
72
|
-
export const AUDIO_FIELD: AudioField;
|
73
|
-
/**
|
74
|
-
* Property type: `string | null | undefined`
|
75
|
-
* Constructor type: `string | null | undefined`
|
76
|
-
*/
|
77
|
-
interface AudioField extends DocumentField<string> {
|
78
|
-
type: typeof String;
|
79
|
-
required: false;
|
80
|
-
nullable: true;
|
81
|
-
validate: (src: string | null) => boolean;
|
82
|
-
validationError: '{name} {field} "{value}" does not have a valid audio file extension';
|
83
|
-
}
|
84
|
-
|
85
|
-
/**
|
86
|
-
* A standard integer field which may be used in a Document.
|
87
|
-
*/
|
88
|
-
export const INTEGER_FIELD: IntegerField;
|
89
|
-
/**
|
90
|
-
* Property type: `number | undefined`
|
91
|
-
* Constructor type: `number | null | undefined`
|
92
|
-
*/
|
93
|
-
interface IntegerField extends DocumentField<number> {
|
94
|
-
type: typeof Number;
|
95
|
-
required: false;
|
96
|
-
validate: typeof Number.isInteger;
|
97
|
-
validationError: '{name} {field} "{value}" does not have an integer value';
|
98
|
-
}
|
99
|
-
|
100
|
-
/**
|
101
|
-
* A string field which contains serialized JSON data that may be used in a Document.
|
102
|
-
*/
|
103
|
-
export const JSON_FIELD: JsonField;
|
104
|
-
/**
|
105
|
-
* Property type: `string | undefined`
|
106
|
-
* Constructor type: `string | object | null | undefined`
|
107
|
-
*/
|
108
|
-
interface JsonField extends DocumentField<string> {
|
109
|
-
type: typeof String;
|
110
|
-
required: false;
|
111
|
-
clean: (s: unknown) => string;
|
112
|
-
validate: typeof isJSON;
|
113
|
-
validationError: '{name} {field} "{value}" is not a valid JSON string';
|
114
|
-
}
|
115
|
-
|
116
|
-
/**
|
117
|
-
* A non-negative integer field which may be used in a Document.
|
118
|
-
*/
|
119
|
-
export const NONNEGATIVE_INTEGER_FIELD: NonnegativeIntegerField;
|
120
|
-
/**
|
121
|
-
* Property type: `number | undefined`
|
122
|
-
* Constructor type: `number | null | undefined`
|
123
|
-
*/
|
124
|
-
interface NonnegativeIntegerField extends DocumentField<number> {
|
125
|
-
type: typeof Number;
|
126
|
-
required: false;
|
127
|
-
validate: (n: unknown) => boolean;
|
128
|
-
validationError: '{name} {field} "{value}" does not have an non-negative integer value';
|
129
|
-
}
|
130
|
-
|
131
|
-
/**
|
132
|
-
* A non-negative integer field which may be used in a Document.
|
133
|
-
*
|
134
|
-
* @remarks The validation actually checks for `> 0`, the JSDoc is incorrect in foundry.
|
135
|
-
*/
|
136
|
-
export const POSITIVE_INTEGER_FIELD: PositiveIntegerField;
|
137
|
-
/**
|
138
|
-
* Property type: `number | undefined`
|
139
|
-
* Constructor type: `number | null | undefined`
|
140
|
-
*/
|
141
|
-
interface PositiveIntegerField extends DocumentField<number> {
|
142
|
-
type: typeof Number;
|
143
|
-
required: false;
|
144
|
-
validate: (n: unknown) => boolean;
|
145
|
-
validationError: '{name} {field} "{value}" does not have an non-negative integer value';
|
146
|
-
}
|
147
|
-
|
148
|
-
/**
|
149
|
-
* A template for a required inner-object field which may be used in a Document.
|
150
|
-
*/
|
151
|
-
export const OBJECT_FIELD: ObjectField;
|
152
|
-
/**
|
153
|
-
* Property type: `object`
|
154
|
-
* Constructor type: `object | null | undefined`
|
155
|
-
* Default `{}`
|
156
|
-
*/
|
157
|
-
interface ObjectField extends DocumentField<object> {
|
158
|
-
type: typeof Object;
|
159
|
-
default: Record<string, never>;
|
160
|
-
required: true;
|
161
|
-
}
|
162
|
-
|
163
|
-
/**
|
164
|
-
* An optional string field which may be included by a Document.
|
165
|
-
*/
|
166
|
-
export const STRING_FIELD: StringField;
|
167
|
-
/**
|
168
|
-
* Property type: `string | undefined`
|
169
|
-
* Constructor type: `string | null | undefined`
|
170
|
-
*/
|
171
|
-
interface StringField extends DocumentField<string> {
|
172
|
-
type: typeof String;
|
173
|
-
required: false;
|
174
|
-
nullable: false;
|
175
|
-
}
|
176
|
-
|
177
|
-
/**
|
178
|
-
* An optional numeric field which may be included in a Document.
|
179
|
-
*/
|
180
|
-
export const NUMERIC_FIELD: NumericField;
|
181
|
-
/**
|
182
|
-
* Property type: `number | null | undefined`
|
183
|
-
* Constructor type: `number | null | undefined`
|
184
|
-
*/
|
185
|
-
interface NumericField extends DocumentField<number> {
|
186
|
-
type: typeof Number;
|
187
|
-
required: false;
|
188
|
-
nullable: true;
|
189
|
-
}
|
190
|
-
|
191
|
-
/**
|
192
|
-
* A required numeric field which may be included in a Document and may not be null.
|
193
|
-
*/
|
194
|
-
export const REQUIRED_NUMBER: RequiredNumber;
|
195
|
-
/**
|
196
|
-
* Property type: `number`
|
197
|
-
* Constructor type: `number | null | undefined`
|
198
|
-
* Default: `0`
|
199
|
-
*/
|
200
|
-
interface RequiredNumber extends DocumentField<number> {
|
201
|
-
type: typeof Number;
|
202
|
-
required: true;
|
203
|
-
nullable: false;
|
204
|
-
default: 0;
|
205
|
-
}
|
206
|
-
|
207
|
-
/**
|
208
|
-
* A field used to designate a non-negative number
|
209
|
-
*/
|
210
|
-
export const NONNEGATIVE_NUMBER_FIELD: NonnegativeNumberField;
|
211
|
-
/**
|
212
|
-
* Property type: `number`
|
213
|
-
* Constructor type: `number | null | undefined`
|
214
|
-
* Default: `0`
|
215
|
-
*/
|
216
|
-
interface NonnegativeNumberField extends DocumentField<number> {
|
217
|
-
type: typeof Number;
|
218
|
-
required: true;
|
219
|
-
nullable: false;
|
220
|
-
default: 0;
|
221
|
-
validate: (n: unknown) => boolean;
|
222
|
-
validationError: '{name} {field} "{value}" must be a non-negative number';
|
223
|
-
}
|
224
|
-
|
225
|
-
/**
|
226
|
-
* A required numeric field which must be a positive finite value that may be included in a Document.
|
227
|
-
*/
|
228
|
-
export const REQUIRED_POSITIVE_NUMBER: RequiredPositiveNumber;
|
229
|
-
/**
|
230
|
-
* Property type: `number`
|
231
|
-
* Constructor type: `number`
|
232
|
-
*/
|
233
|
-
interface RequiredPositiveNumber extends DocumentField<number> {
|
234
|
-
type: typeof Number;
|
235
|
-
required: true;
|
236
|
-
nullable: false;
|
237
|
-
validate: (n: unknown) => boolean;
|
238
|
-
validationError: '{name} {field} "{value}" is not a positive number';
|
239
|
-
}
|
240
|
-
|
241
|
-
/**
|
242
|
-
* A required numeric field which represents an angle of rotation in degrees between 0 and 360.
|
243
|
-
*/
|
244
|
-
export const ANGLE_FIELD: AngleField;
|
245
|
-
/**
|
246
|
-
* Property type: `number`
|
247
|
-
* Constructor type: `number | null | undefined`
|
248
|
-
* Default: `360`
|
249
|
-
*/
|
250
|
-
interface AngleField extends DocumentField<number> {
|
251
|
-
type: typeof Number;
|
252
|
-
required: true;
|
253
|
-
nullable: false;
|
254
|
-
default: 360;
|
255
|
-
clean: (n: unknown) => number;
|
256
|
-
validate: (n: number) => boolean;
|
257
|
-
validationError: '{name} {field} "{value}" is not a number between 0 and 360';
|
258
|
-
}
|
259
|
-
|
260
|
-
/**
|
261
|
-
* A required numeric field which represents a uniform number between 0 and 1.
|
262
|
-
*/
|
263
|
-
export const ALPHA_FIELD: AlphaField;
|
264
|
-
/**
|
265
|
-
* Property type: `number`
|
266
|
-
* Constructor type: `number | null | undefined`
|
267
|
-
* Default: `1`
|
268
|
-
*/
|
269
|
-
interface AlphaField extends DocumentField<number> {
|
270
|
-
type: typeof Number;
|
271
|
-
required: true;
|
272
|
-
nullable: false;
|
273
|
-
default: 1;
|
274
|
-
validate: (n: number) => boolean;
|
275
|
-
validationError: '{name} {field} "{value}" is not a number between 0 and 1';
|
276
|
-
}
|
277
|
-
|
278
|
-
/**
|
279
|
-
* A string field which requires a non-blank value and may not be null.
|
280
|
-
*/
|
281
|
-
export const REQUIRED_STRING: RequiredString;
|
282
|
-
/**
|
283
|
-
* Property type: `string`
|
284
|
-
* Constructor type: `string`
|
285
|
-
*/
|
286
|
-
interface RequiredString extends DocumentField<string> {
|
287
|
-
type: typeof String;
|
288
|
-
required: true;
|
289
|
-
nullable: false;
|
290
|
-
clean: <T>(v: T) => T extends undefined ? undefined : string;
|
291
|
-
}
|
292
|
-
|
293
|
-
/**
|
294
|
-
* A string field which is required, but may be left blank as an empty string.
|
295
|
-
*/
|
296
|
-
export const BLANK_STRING: BlankString;
|
297
|
-
/**
|
298
|
-
* Property type: `string`
|
299
|
-
* Constructor type: `string | null | undefined`
|
300
|
-
* Default: `""`
|
301
|
-
*/
|
302
|
-
interface BlankString extends DocumentField<string> {
|
303
|
-
type: typeof String;
|
304
|
-
required: true;
|
305
|
-
nullable: false;
|
306
|
-
clean: (v: unknown) => string;
|
307
|
-
default: '';
|
308
|
-
}
|
309
|
-
|
310
|
-
/**
|
311
|
-
* A field used for integer sorting of a Document relative to its siblings
|
312
|
-
*/
|
313
|
-
export const INTEGER_SORT_FIELD: IntegerSortField;
|
314
|
-
/**
|
315
|
-
* Property type: `number`
|
316
|
-
* Constructor type: `number | null | undefined`
|
317
|
-
* Default: `0`
|
318
|
-
*/
|
319
|
-
interface IntegerSortField extends DocumentField<number> {
|
320
|
-
type: typeof Number;
|
321
|
-
required: true;
|
322
|
-
default: 0;
|
323
|
-
validate: typeof Number.isInteger;
|
324
|
-
validationError: '{name} {field} "{value}" is not an integer';
|
325
|
-
}
|
326
|
-
|
327
|
-
/**
|
328
|
-
* A numeric timestamp field which may be used in a Document.
|
329
|
-
*/
|
330
|
-
export const TIMESTAMP_FIELD: TimestampField;
|
331
|
-
/**
|
332
|
-
* Property type: `number | undefined`
|
333
|
-
* Constructor type: `number | null | undefined`
|
334
|
-
* Default: `Date.now()`
|
335
|
-
*/
|
336
|
-
interface TimestampField extends DocumentField<number> {
|
337
|
-
type: typeof Number;
|
338
|
-
required: false;
|
339
|
-
default: typeof Date.now;
|
340
|
-
nullable: false;
|
341
|
-
}
|
342
|
-
|
343
|
-
/**
|
344
|
-
* Validate that the ID of a Document object is either null (not yet saved) or a valid string.
|
345
|
-
* @param id - The _id to test
|
346
|
-
* @returns Is it valid?
|
347
|
-
*/
|
348
|
-
declare function _validateId(id: string | null): boolean;
|
349
|
-
|
350
|
-
/**
|
351
|
-
* The standard identifier for a Document.
|
352
|
-
*/
|
353
|
-
export const DOCUMENT_ID: DocumentId;
|
354
|
-
/**
|
355
|
-
* Property type: `string | null`
|
356
|
-
* Constructor type: `string | null | undefined`
|
357
|
-
* Default: `null`
|
358
|
-
*/
|
359
|
-
interface DocumentId extends DocumentField<string | null> {
|
360
|
-
type: typeof String;
|
361
|
-
required: true;
|
362
|
-
default: null;
|
363
|
-
nullable: false;
|
364
|
-
validate: typeof _validateId;
|
365
|
-
validationError: '{name} {field} "{value}" is not a valid document ID string';
|
366
|
-
}
|
367
|
-
|
368
|
-
/**
|
369
|
-
* The standard permissions object which may be included by a Document.
|
370
|
-
*/
|
371
|
-
export const DOCUMENT_PERMISSIONS: DocumentPermissions;
|
372
|
-
/**
|
373
|
-
* Property type: `Partial<Record<string, DOCUMENT_PERMISSION_LEVELS>>`
|
374
|
-
* Constructor type: `Partial<Record<string, DOCUMENT_PERMISSION_LEVELS>> | null | undefined`
|
375
|
-
* Default: `{ default: DOCUMENT_PERMISSION_LEVELS.NONE }`
|
376
|
-
*/
|
377
|
-
interface DocumentPermissions extends DocumentField<Partial<Record<string, DOCUMENT_PERMISSION_LEVELS>>> {
|
378
|
-
type: typeof Object;
|
379
|
-
required: true;
|
380
|
-
nullable: false;
|
381
|
-
default: { default: typeof DOCUMENT_PERMISSION_LEVELS.NONE };
|
382
|
-
validate: typeof _validatePermissions;
|
383
|
-
validationError: '{name} {field} "{value}" is not a mapping of user IDs and document permission levels';
|
384
|
-
}
|
385
|
-
|
386
|
-
/**
|
387
|
-
* Validate the structure of the permissions object: all keys are valid IDs and all values are permission levels
|
388
|
-
* @param perms - The provided permissions object
|
389
|
-
* @returns Is the object valid?
|
390
|
-
*/
|
391
|
-
declare function _validatePermissions(perms: object): boolean;
|
392
|
-
|
393
|
-
interface ForeignDocumentFieldOptions {
|
394
|
-
type: {
|
395
|
-
readonly documentName: string;
|
396
|
-
};
|
397
|
-
required?: boolean;
|
398
|
-
nullable?: boolean;
|
399
|
-
default?: any;
|
400
|
-
}
|
401
|
-
|
402
|
-
/**
|
403
|
-
* Create a foreign key field which references a primary Document id
|
404
|
-
*/
|
405
|
-
export function foreignDocumentField<T extends ForeignDocumentFieldOptions>(options: T): ForeignDocumentField<T>;
|
406
|
-
/**
|
407
|
-
* Default config:
|
408
|
-
* ```
|
409
|
-
* {
|
410
|
-
* type: String,
|
411
|
-
* required: false,
|
412
|
-
* nullable: true,
|
413
|
-
* default: null
|
414
|
-
* }
|
415
|
-
* ```
|
416
|
-
* With default config:
|
417
|
-
* Property type: `string | null`
|
418
|
-
* Constructor type: `ForeignDocument | string | null | undefined`
|
419
|
-
* Default: `null`
|
420
|
-
*/
|
421
|
-
interface ForeignDocumentField<T extends ForeignDocumentFieldOptions> extends DocumentField<string | null> {
|
422
|
-
type: typeof String;
|
423
|
-
required: T extends {
|
424
|
-
required: true;
|
425
|
-
}
|
426
|
-
? true
|
427
|
-
: false;
|
428
|
-
nullable: T extends {
|
429
|
-
nullable?: true;
|
430
|
-
}
|
431
|
-
? true
|
432
|
-
: T extends {
|
433
|
-
nullable: false;
|
434
|
-
}
|
435
|
-
? false
|
436
|
-
: boolean;
|
437
|
-
default: T extends {
|
438
|
-
default: infer U;
|
439
|
-
}
|
440
|
-
? U
|
441
|
-
: null;
|
442
|
-
clean: (d: unknown) => string | null;
|
443
|
-
validate: typeof _validateId;
|
444
|
-
validationError: `{name} {field} "{value}" is not a valid ${T['type']['documentName']} id`;
|
445
|
-
}
|
446
|
-
|
447
|
-
interface EmbeddedCollectionFieldOptions {
|
448
|
-
required?: boolean;
|
449
|
-
default?: any[];
|
450
|
-
}
|
451
|
-
|
452
|
-
/**
|
453
|
-
* Create a special field which contains a Collection of embedded Documents
|
454
|
-
* @param document - The Document class definition
|
455
|
-
* @param options - Additional field options
|
456
|
-
* (default: `{}`)
|
457
|
-
*/
|
458
|
-
export function embeddedCollectionField<
|
459
|
-
ConcreteDocumentConstructor extends { readonly documentName: string } & ConstructorOf<Document<any, any>>,
|
460
|
-
Options extends EmbeddedCollectionFieldOptions
|
461
|
-
>(
|
462
|
-
document: ConcreteDocumentConstructor,
|
463
|
-
options?: Options
|
464
|
-
): EmbeddedCollectionField<ConcreteDocumentConstructor, Options>;
|
465
|
-
/**
|
466
|
-
* Default config:
|
467
|
-
* ```
|
468
|
-
* {
|
469
|
-
* type: {
|
470
|
-
* [documentName]: DocumentConstructor
|
471
|
-
* },
|
472
|
-
* required: true,
|
473
|
-
* default: [],
|
474
|
-
* isCollection: true
|
475
|
-
* }
|
476
|
-
* ```
|
477
|
-
* With default config:
|
478
|
-
* Property type: `EmbeddedCollection<DocumentConstructor, ParentDocumentData>`
|
479
|
-
* Constructor type: `DocumentConstructorData[] | null | undefined`
|
480
|
-
* Default: `new EmbeddedCollection(DocumentData, [], DocumentConstructor)`
|
481
|
-
*/
|
482
|
-
// TODO: Improve
|
483
|
-
interface EmbeddedCollectionField<
|
484
|
-
ConcreteDocumentConstructor extends ConstructorOf<Document<any, any>>,
|
485
|
-
Options extends EmbeddedCollectionFieldOptions = {}
|
486
|
-
> extends DocumentField<any> {
|
487
|
-
type: Partial<Record<string, ConcreteDocumentConstructor>>;
|
488
|
-
required: Options extends { required?: true } ? true : Options extends { required: false } ? false : boolean;
|
489
|
-
default: Options extends { default?: Array<infer U> } ? Array<U> : unknown[];
|
490
|
-
isCollection: true;
|
491
|
-
}
|
492
|
-
|
493
|
-
/**
|
494
|
-
* A special field which contains a data object defined from the game System model.
|
495
|
-
* @param document - The Document class definition
|
496
|
-
*/
|
497
|
-
export function systemDataField<
|
498
|
-
DocumentSpecifier extends { readonly documentName: keyof Game.SystemData<any>['model'] }
|
499
|
-
>(document: DocumentSpecifier): SystemDataField;
|
500
|
-
/**
|
501
|
-
* Default config:
|
502
|
-
* ```
|
503
|
-
* {
|
504
|
-
* type: Object,
|
505
|
-
* required: true,
|
506
|
-
* default: object // template object of object type from template.json
|
507
|
-
* }
|
508
|
-
* ```
|
509
|
-
* Property type: `object`
|
510
|
-
* Constructor type: `object | null | undefined`
|
511
|
-
* Default: `{}`
|
512
|
-
*/
|
513
|
-
// TODO: Improve
|
514
|
-
interface SystemDataField extends DocumentField<any> {
|
515
|
-
type: typeof Object;
|
516
|
-
default: (data: { type?: string }) => Record<string, Record<string, unknown>>;
|
517
|
-
required: true;
|
518
|
-
}
|
519
|
-
|
520
|
-
/**
|
521
|
-
* Return a document field which is a modification of a static field type
|
522
|
-
*/
|
523
|
-
export function field<T extends DocumentField<any>, U extends Partial<DocumentField<any>>>(
|
524
|
-
field: T,
|
525
|
-
options?: U
|
526
|
-
): FieldReturnType<T, U>;
|
@@ -1,56 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* Test whether a string is a valid 16 character UID
|
3
|
-
*/
|
4
|
-
export declare function isValidId(id: string | null): boolean;
|
5
|
-
|
6
|
-
/**
|
7
|
-
* Test whether a file path has an extension in a list of provided extensions
|
8
|
-
*/
|
9
|
-
export declare function _hasFileExtension(path: string | null, extensions: string[]): boolean;
|
10
|
-
|
11
|
-
/**
|
12
|
-
* Test whether a file path has a valid image file extension or is base64 PNG data
|
13
|
-
* @param path - The image path to test
|
14
|
-
* @returns Is the path valid?
|
15
|
-
*/
|
16
|
-
export function hasImageExtension(path: string | null): boolean;
|
17
|
-
/**
|
18
|
-
* Test whether a data blob represents a base64 image
|
19
|
-
* @param data - A base64 data string
|
20
|
-
* @returns Is it a base64 image?
|
21
|
-
*/
|
22
|
-
export declare function isBase64Image(data: string): boolean;
|
23
|
-
|
24
|
-
/**
|
25
|
-
* Test whether an input represents a valid 6-character color string
|
26
|
-
* @param color - The input string to test
|
27
|
-
* @returns Is the string a valid color?
|
28
|
-
*/
|
29
|
-
export declare function isColorString(color: string): boolean;
|
30
|
-
/**
|
31
|
-
* Test whether a file path has a valid audio file extension
|
32
|
-
* @param path - The image path to test
|
33
|
-
* @returns Is the path valid?
|
34
|
-
*/
|
35
|
-
export declare function hasVideoExtension(path: string | null): boolean;
|
36
|
-
|
37
|
-
/**
|
38
|
-
* Test whether a file path has a valid video file extension
|
39
|
-
* @param path - The image path to test
|
40
|
-
* @returns Is the path valid?
|
41
|
-
*/
|
42
|
-
export declare function hasAudioExtension(path: string | null): boolean;
|
43
|
-
/**
|
44
|
-
* Assert that the given value is in an array of allowed options
|
45
|
-
* @param val - The value to test
|
46
|
-
* @param array - The set of allowed options
|
47
|
-
* @returns Is the valid included?
|
48
|
-
*/
|
49
|
-
export declare function valueInArray<T>(val: T, array: T[]): boolean;
|
50
|
-
|
51
|
-
/**
|
52
|
-
* Assert that the given value parses as a valid JSON string
|
53
|
-
* @param val - The value to test
|
54
|
-
* @returns Is the String valid JSON?
|
55
|
-
*/
|
56
|
-
export declare function isJSON(val: string): boolean;
|
@@ -1,44 +0,0 @@
|
|
1
|
-
import { ConfiguredDocumentClass } from '../../../types/helperTypes';
|
2
|
-
import { DocumentMetadata, DocumentModificationOptions } from '../abstract/document.mjs';
|
3
|
-
import { Document } from '../abstract/module.mjs';
|
4
|
-
import * as data from '../data/data.mjs';
|
5
|
-
import type { ActiveEffectDataConstructorData } from '../data/data.mjs/activeEffectData';
|
6
|
-
import { BaseActor } from './baseActor';
|
7
|
-
import { BaseItem } from './baseItem';
|
8
|
-
import { BaseUser } from './baseUser';
|
9
|
-
|
10
|
-
type ActiveEffectMetadata = Merge<
|
11
|
-
DocumentMetadata,
|
12
|
-
{
|
13
|
-
name: 'ActiveEffect';
|
14
|
-
collection: 'effects';
|
15
|
-
label: 'DOCUMENT.ActiveEffect';
|
16
|
-
labelPlural: 'DOCUMENT.ActiveEffects';
|
17
|
-
isEmbedded: true;
|
18
|
-
}
|
19
|
-
>;
|
20
|
-
|
21
|
-
/**
|
22
|
-
* The base ActiveEffect model definition which defines common behavior of an ActiveEffect document between both client and server.
|
23
|
-
*/
|
24
|
-
export declare class BaseActiveEffect extends Document<
|
25
|
-
data.ActiveEffectData,
|
26
|
-
InstanceType<ConfiguredDocumentClass<typeof BaseActor>> | InstanceType<ConfiguredDocumentClass<typeof BaseItem>>,
|
27
|
-
ActiveEffectMetadata
|
28
|
-
> {
|
29
|
-
static override get schema(): ConstructorOf<data.ActiveEffectData>;
|
30
|
-
|
31
|
-
static override get metadata(): ActiveEffectMetadata;
|
32
|
-
|
33
|
-
protected override _preCreate(
|
34
|
-
data: ActiveEffectDataConstructorData,
|
35
|
-
options: DocumentModificationOptions,
|
36
|
-
user: BaseUser
|
37
|
-
): Promise<void>;
|
38
|
-
|
39
|
-
override testUserPermission(
|
40
|
-
user: BaseUser,
|
41
|
-
permission: keyof typeof foundry.CONST.ENTITY_PERMISSIONS | foundry.CONST.DOCUMENT_PERMISSION_LEVELS,
|
42
|
-
{ exact }: { exact?: boolean }
|
43
|
-
): boolean;
|
44
|
-
}
|
@@ -1,68 +0,0 @@
|
|
1
|
-
import { ConfiguredDocumentClass } from '../../../types/helperTypes';
|
2
|
-
import { DocumentMetadata, DocumentModificationOptions } from '../abstract/document.mjs';
|
3
|
-
import { Document } from '../abstract/module.mjs';
|
4
|
-
import * as data from '../data/data.mjs';
|
5
|
-
import type { ActorDataConstructorData } from '../data/data.mjs/actorData';
|
6
|
-
import { BaseActiveEffect } from './baseActiveEffect';
|
7
|
-
import { BaseItem } from './baseItem';
|
8
|
-
import { BaseToken } from './baseToken';
|
9
|
-
import { BaseUser } from './baseUser';
|
10
|
-
|
11
|
-
type ActorMetadata = Merge<
|
12
|
-
DocumentMetadata,
|
13
|
-
{
|
14
|
-
name: 'Actor';
|
15
|
-
collection: 'actors';
|
16
|
-
label: 'DOCUMENT.Actor';
|
17
|
-
labelPlural: 'DOCUMENT.Actors';
|
18
|
-
embedded: {
|
19
|
-
ActiveEffect: typeof BaseActiveEffect;
|
20
|
-
Item: typeof BaseItem;
|
21
|
-
};
|
22
|
-
isPrimary: true;
|
23
|
-
hasSystemData: true;
|
24
|
-
permissions: {
|
25
|
-
create: 'ACTOR_CREATE';
|
26
|
-
};
|
27
|
-
types: string[];
|
28
|
-
}
|
29
|
-
>;
|
30
|
-
|
31
|
-
/**
|
32
|
-
* The base Actor model definition which defines common behavior of an Actor document between both client and server.
|
33
|
-
*/
|
34
|
-
export declare class BaseActor extends Document<
|
35
|
-
data.ActorData,
|
36
|
-
InstanceType<ConfiguredDocumentClass<typeof BaseToken>>,
|
37
|
-
ActorMetadata
|
38
|
-
> {
|
39
|
-
static override get schema(): typeof data.ActorData;
|
40
|
-
|
41
|
-
static override get metadata(): ActorMetadata;
|
42
|
-
/*
|
43
|
-
* A reference to the Collection of embedded ActiveEffect instances in the Actor document, indexed by _id.
|
44
|
-
*/
|
45
|
-
get effects(): this['data']['effects'];
|
46
|
-
|
47
|
-
/**
|
48
|
-
* A reference to the Collection of embedded Item instances in the Actor document, indexed by _id.
|
49
|
-
*/
|
50
|
-
get items(): this['data']['items'];
|
51
|
-
|
52
|
-
/**
|
53
|
-
* The sub-type of Actor.
|
54
|
-
*/
|
55
|
-
get type(): data.ActorData['type'];
|
56
|
-
|
57
|
-
protected override _preCreate(
|
58
|
-
data: ActorDataConstructorData,
|
59
|
-
options: DocumentModificationOptions,
|
60
|
-
user: BaseUser
|
61
|
-
): Promise<void>;
|
62
|
-
|
63
|
-
protected override _preUpdate(
|
64
|
-
changed: DeepPartial<ActorDataConstructorData>,
|
65
|
-
options: DocumentModificationOptions,
|
66
|
-
user: BaseUser
|
67
|
-
): Promise<void>;
|
68
|
-
}
|