@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250705112003 → 13.346.0-beta.20250705133313

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/package.json +5 -3
  2. package/src/configuration/hooks.d.mts +1 -1
  3. package/src/foundry/client/applications/api/document-sheet.d.mts +8 -1
  4. package/src/foundry/client/applications/api/handlebars-application.d.mts +2 -2
  5. package/src/foundry/client/applications/sheets/ambient-light-config.d.mts +2 -2
  6. package/src/foundry/client/applications/sheets/region-behavior-config.d.mts +1 -1
  7. package/src/foundry/client/documents/abstract/document-collection.d.mts +6 -4
  8. package/src/foundry/client/documents/active-effect.d.mts +12 -5
  9. package/src/foundry/client/documents/actor-delta.d.mts +12 -5
  10. package/src/foundry/client/documents/actor.d.mts +12 -5
  11. package/src/foundry/client/documents/adventure.d.mts +12 -5
  12. package/src/foundry/client/documents/ambient-light.d.mts +12 -5
  13. package/src/foundry/client/documents/ambient-sound.d.mts +12 -5
  14. package/src/foundry/client/documents/card.d.mts +11 -6
  15. package/src/foundry/client/documents/cards.d.mts +13 -6
  16. package/src/foundry/client/documents/chat-message.d.mts +15 -8
  17. package/src/foundry/client/documents/collections/compendium-collection.d.mts +2 -0
  18. package/src/foundry/client/documents/combat.d.mts +12 -5
  19. package/src/foundry/client/documents/combatant-group.d.mts +12 -5
  20. package/src/foundry/client/documents/combatant.d.mts +12 -5
  21. package/src/foundry/client/documents/drawing.d.mts +12 -5
  22. package/src/foundry/client/documents/fog-exploration.d.mts +12 -5
  23. package/src/foundry/client/documents/folder.d.mts +13 -6
  24. package/src/foundry/client/documents/item.d.mts +10 -5
  25. package/src/foundry/client/documents/journal-entry-category.d.mts +12 -5
  26. package/src/foundry/client/documents/journal-entry-page.d.mts +12 -5
  27. package/src/foundry/client/documents/journal-entry.d.mts +12 -5
  28. package/src/foundry/client/documents/macro.d.mts +12 -5
  29. package/src/foundry/client/documents/measured-template.d.mts +12 -5
  30. package/src/foundry/client/documents/note.d.mts +12 -5
  31. package/src/foundry/client/documents/playlist-sound.d.mts +12 -5
  32. package/src/foundry/client/documents/playlist.d.mts +12 -5
  33. package/src/foundry/client/documents/region-behavior.d.mts +12 -5
  34. package/src/foundry/client/documents/region.d.mts +12 -5
  35. package/src/foundry/client/documents/roll-table.d.mts +13 -6
  36. package/src/foundry/client/documents/scene.d.mts +12 -5
  37. package/src/foundry/client/documents/setting.d.mts +8 -1
  38. package/src/foundry/client/documents/table-result.d.mts +12 -5
  39. package/src/foundry/client/documents/tile.d.mts +12 -5
  40. package/src/foundry/client/documents/token.d.mts +15 -12
  41. package/src/foundry/client/documents/user.d.mts +10 -5
  42. package/src/foundry/client/documents/wall.d.mts +12 -5
  43. package/src/foundry/client/helpers/client-settings.d.mts +7 -3
  44. package/src/foundry/common/abstract/document.d.mts +98 -50
  45. package/src/foundry/common/abstract/type-data.d.mts +35 -10
  46. package/src/foundry/common/data/data.d.mts +2 -2
  47. package/src/foundry/common/data/fields.d.mts +71 -59
  48. package/src/foundry/common/documents/active-effect.d.mts +6 -5
  49. package/src/foundry/common/documents/actor-delta.d.mts +6 -5
  50. package/src/foundry/common/documents/actor.d.mts +6 -5
  51. package/src/foundry/common/documents/adventure.d.mts +6 -5
  52. package/src/foundry/common/documents/ambient-light.d.mts +6 -5
  53. package/src/foundry/common/documents/ambient-sound.d.mts +6 -5
  54. package/src/foundry/common/documents/card.d.mts +6 -5
  55. package/src/foundry/common/documents/cards.d.mts +6 -5
  56. package/src/foundry/common/documents/chat-message.d.mts +6 -5
  57. package/src/foundry/common/documents/combat.d.mts +6 -5
  58. package/src/foundry/common/documents/combatant-group.d.mts +6 -5
  59. package/src/foundry/common/documents/combatant.d.mts +6 -5
  60. package/src/foundry/common/documents/drawing.d.mts +6 -5
  61. package/src/foundry/common/documents/fog-exploration.d.mts +6 -5
  62. package/src/foundry/common/documents/folder.d.mts +6 -5
  63. package/src/foundry/common/documents/item.d.mts +6 -5
  64. package/src/foundry/common/documents/journal-entry-category.d.mts +6 -5
  65. package/src/foundry/common/documents/journal-entry-page.d.mts +6 -5
  66. package/src/foundry/common/documents/journal-entry.d.mts +6 -5
  67. package/src/foundry/common/documents/macro.d.mts +6 -5
  68. package/src/foundry/common/documents/measured-template.d.mts +6 -5
  69. package/src/foundry/common/documents/note.d.mts +6 -5
  70. package/src/foundry/common/documents/playlist-sound.d.mts +6 -5
  71. package/src/foundry/common/documents/playlist.d.mts +6 -5
  72. package/src/foundry/common/documents/region-behavior.d.mts +6 -5
  73. package/src/foundry/common/documents/region.d.mts +6 -5
  74. package/src/foundry/common/documents/roll-table.d.mts +6 -5
  75. package/src/foundry/common/documents/scene.d.mts +6 -5
  76. package/src/foundry/common/documents/setting.d.mts +4 -3
  77. package/src/foundry/common/documents/table-result.d.mts +6 -5
  78. package/src/foundry/common/documents/tile.d.mts +6 -5
  79. package/src/foundry/common/documents/token.d.mts +6 -5
  80. package/src/foundry/common/documents/user.d.mts +6 -5
  81. package/src/foundry/common/documents/wall.d.mts +6 -5
  82. package/src/foundry/common/packages/base-world.d.mts +31 -29
  83. package/src/types/augments/pixi.d.mts +4 -0
  84. package/tsconfig.json +1 -4
@@ -8,6 +8,36 @@ declare namespace BaseWorld {
8
8
  export import InitializedData = World.InitializedData;
9
9
  export import UpdateData = World.UpdateData;
10
10
  export import Schema = World.Schema;
11
+
12
+ interface TestAvailabilityOptions {
13
+ /**
14
+ * A specific software release for which to test availability.
15
+ * Tests against the current release by default.
16
+ */
17
+ release?: ReleaseData | undefined;
18
+
19
+ /**
20
+ * A specific collection of modules to test availability
21
+ * against. Tests against the currently installed modules by
22
+ * default.
23
+ */
24
+ modules?: Collection<foundry.packages.Module> | undefined;
25
+
26
+ /**
27
+ * A specific collection of modules to test availability
28
+ * against. Tests against the currently installed modules by
29
+ * default.
30
+ */
31
+ systems?: Collection<foundry.packages.System> | undefined;
32
+
33
+ /**
34
+ * Ignore the world's own core software compatibility and
35
+ * instead defer entirely to the system's core software
36
+ * compatibility, if the world's availability is less than
37
+ * this.
38
+ */
39
+ systemAvailabilityThreshold?: foundry.CONST.PACKAGE_AVAILABILITY_CODES | undefined;
40
+ }
11
41
  }
12
42
 
13
43
  /**
@@ -37,35 +67,7 @@ declare class BaseWorld extends BasePackage<BaseWorld.Schema> {
37
67
 
38
68
  static testAvailability(
39
69
  data: InexactPartial<PackageManifestData>,
40
- options: InexactPartial<{
41
- /**
42
- * A specific software release for which to test availability.
43
- * Tests against the current release by default.
44
- */
45
- release: ReleaseData;
46
-
47
- /**
48
- * A specific collection of modules to test availability
49
- * against. Tests against the currently installed modules by
50
- * default.
51
- */
52
- modules: Collection<foundry.packages.Module>;
53
-
54
- /**
55
- * A specific collection of modules to test availability
56
- * against. Tests against the currently installed modules by
57
- * default.
58
- */
59
- systems: Collection<foundry.packages.System>;
60
-
61
- /**
62
- * Ignore the world's own core software compatibility and
63
- * instead defer entirely to the system's core software
64
- * compatibility, if the world's availability is less than
65
- * this.
66
- */
67
- systemAvailabilityThreshold: foundry.CONST.PACKAGE_AVAILABILITY_CODES;
68
- }>,
70
+ options: BaseWorld.TestAvailabilityOptions,
69
71
  ): foundry.CONST.PACKAGE_AVAILABILITY_CODES;
70
72
  }
71
73
 
@@ -1086,6 +1086,10 @@ declare module "pixi.js" {
1086
1086
  }
1087
1087
  }
1088
1088
 
1089
+ declare module "@pixi/utils" {
1090
+ function detectVideoAlphaMode(): Promise<PIXI.ALPHA_MODES>;
1091
+ }
1092
+
1089
1093
  declare abstract class AnyPIXIBatchGeometry extends PIXI.BatchGeometry {
1090
1094
  constructor(...args: never);
1091
1095
  }
package/tsconfig.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/tsconfig.json",
3
3
  "extends": "./tsconfig.base.json",
4
- "compilerOptions": {
5
- "types": []
6
- },
7
4
  // Annoyingly, TypeScript doesn't include hidden files by default for whatever reason.
8
5
  "include": ["**/*", ".*", ".**/**/*"],
9
6
  // `src/index-lenient.d.mts` is skipped because it sets `AssumeHookRan` which has some pretty global effects that would make it easy to write broken code.
10
- // `tests` also mess around with configuration, add a lot of overhead, and currently don't all pass.
7
+ // `tests` are excluded to speed up typechecking.
11
8
  "exclude": ["src/index-lenient.d.mts", "tests", "test", "cvise"]
12
9
  }