@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250924210526 → 13.346.0-beta.20250926173413

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.20250924210526",
4
+ "version": "13.346.0-beta.20250926173413",
5
5
  "description": "TypeScript type definitions for Foundry VTT",
6
6
  "type": "module",
7
7
  "types": "./src/index.d.mts",
@@ -2,8 +2,6 @@ import type { fields } from "#common/data/_module.mjs";
2
2
  import type { DataSchema } from "#common/data/fields.mjs";
3
3
  import type { GetKey, ValueOf } from "#utils";
4
4
 
5
- import ClientSettings = foundry.helpers.ClientSettings;
6
-
7
5
  declare class AVSettings {
8
6
  constructor();
9
7
 
@@ -68,11 +66,11 @@ declare class AVSettings {
68
66
 
69
67
  changed(): void;
70
68
 
71
- get<S extends ClientSettings.Scope>(scope: S, setting: string): unknown; // TODO: Improve once we have proper typing for dot notation
69
+ get<S extends "client" | "world">(scope: S, setting: string): unknown; // TODO: Improve once we have proper typing for dot notation
72
70
 
73
71
  getUser(userId: string): AVSettings.UserSettings | null;
74
72
 
75
- set<S extends ClientSettings.Scope>(scope: S, setting: string, value: unknown): void; // TODO: Improve once we have proper typing for dot notation
73
+ set<S extends "client" | "world">(scope: S, setting: string, value: unknown): void; // TODO: Improve once we have proper typing for dot notation
76
74
 
77
75
  /**
78
76
  * Return a mapping of AV settings for each game User.
@@ -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.