@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250924210719 → 13.346.0-beta.20251002185327

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@league-of-foundry-developers/foundry-vtt-types",
4
- "version": "13.346.0-beta.20250924210719",
4
+ "version": "13.346.0-beta.20251002185327",
5
5
  "description": "TypeScript type definitions for Foundry VTT",
6
6
  "type": "module",
7
7
  "types": "./src/index.d.mts",
@@ -674,6 +674,11 @@ declare class Combat<out SubType extends Combat.SubType = Combat.SubType> extend
674
674
  /** Is this combat active in the current scene? */
675
675
  get isActive(): boolean;
676
676
 
677
+ /**
678
+ * Is this Combat currently being viewed?
679
+ */
680
+ get isView(): boolean;
681
+
677
682
  /**
678
683
  * Set the current Combat encounter as active within the Scene.
679
684
  * Deactivate all other Combat encounters within the viewed Scene and set this one as active
@@ -1658,28 +1658,16 @@ declare class TokenDocument extends BaseToken.Internal.CanvasDocument {
1658
1658
 
1659
1659
  /**
1660
1660
  * Pause the movement of this Token document. The movement can be resumed after being paused.
1661
+ *
1661
1662
  * Only the User that initiated the movement can pause it.
1662
- * Returns a callback that can be used to resume the movement later.
1663
- * Only after all callbacks and keys have been called the movement of the Token is resumed.
1664
- * If the callback is called within the update operation workflow, the movement is resumed after the workflow.
1665
- * @returns The callback to resume movement if the movement was or is paused,
1666
- * otherwise null
1667
- * @example
1668
- * ```js
1669
- * // This is an Execute Script Region Behavior that makes the token invisible
1670
- * // On TOKEN_MOVE_IN...
1671
- * if ( !event.user.isSelf ) return;
1672
- * const resumeMovement = event.data.token.pauseMovement();
1673
- * event.data.token.toggleStatusEffect("invisible", {active: true});
1674
- * const resumed = await resumeMovement();
1675
- * ```
1676
- * Pause the movement of this Token document. The movement can be resumed after being paused.
1677
- * Only the User that initiated the movement can pause it.
1678
- * Returns a promise that resolves to true if the movement was resumed by
1679
- * {@link foundry.documents.TokenDocument.resumeMovement | `TokenDocument#resumeMovement`} with the same key that was passed to this function.
1663
+ *
1664
+ * Returns a promise that resolves to true if the movement was resumed by {@linkcode TokenDocument.resumeMovement | TokenDocument#resumeMovement}
1665
+ * with the same key that was passed to this function.
1666
+ *
1680
1667
  * Only after all callbacks and keys have been called the movement of the Token is resumed.
1668
+ *
1681
1669
  * If the callback is called within the update operation workflow, the movement is resumed after the workflow.
1682
- * @param key - The key to resume movement with {@link foundry.documents.TokenDocument.resumeMovement | `TokenDocument#resumeMovement`}
1670
+ * @param key - The key to resume movement with {@linkcode TokenDocument.resumeMovement | TokenDocument#resumeMovement}
1683
1671
  * @returns The continuation promise if the movement was paused, otherwise null
1684
1672
  * @example
1685
1673
  * ```js
@@ -1689,6 +1677,7 @@ declare class TokenDocument extends BaseToken.Internal.CanvasDocument {
1689
1677
  * event.data.token.pauseMovement(this.parent.uuid);
1690
1678
  * }
1691
1679
  * if ( game.user.isActiveGM ) {
1680
+ * if ( event.data.token.rendered ) await event.data.token.object.movementAnimationPromise;
1692
1681
  * const trapUuid; // The Region Behavior UUID of the trap
1693
1682
  * const trapBehavior = await fromUuid(trapUuid);
1694
1683
  * await trapBehavior.update({disabled: false});
@@ -1,6 +1,5 @@
1
1
  import type { Identity, InexactPartial } from "#utils";
2
2
  import type { Tour } from "#client/nue/_module.d.mts";
3
- import type { Application } from "#client/appv1/api/_module.d.mts";
4
3
  import type { ApplicationV2 } from "#client/applications/api/_module.d.mts";
5
4
 
6
5
  /**
@@ -15,8 +14,9 @@ declare class SetupTour extends Tour {
15
14
 
16
15
  /**
17
16
  * Stores a currently open Application for future steps
17
+ * @remarks All Setup-view apps are v2 as of v13
18
18
  */
19
- focusedApp: Application.Any | ApplicationV2.Any;
19
+ focusedApp: ApplicationV2.Any;
20
20
 
21
21
  override get canStart(): boolean;
22
22
 
@@ -405,7 +405,11 @@ declare abstract class DataField<
405
405
  * @param change - The change to apply.
406
406
  * @returns The updated value.
407
407
  */
408
- applyChange(value: InitializedType, model: DataModel.Any, change: ActiveEffect.ChangeData): InitializedType;
408
+ applyChange(
409
+ value: InitializedType,
410
+ model: DataModel.Any,
411
+ change: ActiveEffect.ChangeData,
412
+ ): InitializedType | undefined;
409
413
 
410
414
  /**
411
415
  * Cast a change delta into an appropriate type to be applied to this field.