@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250705110850 → 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.
- package/package.json +5 -3
- package/src/configuration/hooks.d.mts +1 -1
- package/src/foundry/client/applications/api/document-sheet.d.mts +8 -1
- package/src/foundry/client/applications/api/handlebars-application.d.mts +2 -2
- package/src/foundry/client/applications/sheets/ambient-light-config.d.mts +2 -2
- package/src/foundry/client/applications/sheets/region-behavior-config.d.mts +1 -1
- package/src/foundry/client/canvas/placeables/token.d.mts +21 -20
- package/src/foundry/client/documents/abstract/document-collection.d.mts +6 -4
- package/src/foundry/client/documents/active-effect.d.mts +12 -5
- package/src/foundry/client/documents/actor-delta.d.mts +12 -5
- package/src/foundry/client/documents/actor.d.mts +12 -5
- package/src/foundry/client/documents/adventure.d.mts +12 -5
- package/src/foundry/client/documents/ambient-light.d.mts +12 -5
- package/src/foundry/client/documents/ambient-sound.d.mts +12 -5
- package/src/foundry/client/documents/card.d.mts +11 -6
- package/src/foundry/client/documents/cards.d.mts +13 -6
- package/src/foundry/client/documents/chat-message.d.mts +15 -8
- package/src/foundry/client/documents/collections/compendium-collection.d.mts +2 -0
- package/src/foundry/client/documents/combat.d.mts +12 -5
- package/src/foundry/client/documents/combatant-group.d.mts +12 -5
- package/src/foundry/client/documents/combatant.d.mts +12 -5
- package/src/foundry/client/documents/drawing.d.mts +12 -5
- package/src/foundry/client/documents/fog-exploration.d.mts +12 -5
- package/src/foundry/client/documents/folder.d.mts +13 -6
- package/src/foundry/client/documents/item.d.mts +10 -5
- package/src/foundry/client/documents/journal-entry-category.d.mts +12 -5
- package/src/foundry/client/documents/journal-entry-page.d.mts +12 -5
- package/src/foundry/client/documents/journal-entry.d.mts +12 -5
- package/src/foundry/client/documents/macro.d.mts +12 -5
- package/src/foundry/client/documents/measured-template.d.mts +12 -5
- package/src/foundry/client/documents/note.d.mts +12 -5
- package/src/foundry/client/documents/playlist-sound.d.mts +12 -5
- package/src/foundry/client/documents/playlist.d.mts +12 -5
- package/src/foundry/client/documents/region-behavior.d.mts +12 -5
- package/src/foundry/client/documents/region.d.mts +12 -5
- package/src/foundry/client/documents/roll-table.d.mts +13 -6
- package/src/foundry/client/documents/scene.d.mts +12 -5
- package/src/foundry/client/documents/setting.d.mts +8 -1
- package/src/foundry/client/documents/table-result.d.mts +12 -5
- package/src/foundry/client/documents/tile.d.mts +12 -5
- package/src/foundry/client/documents/token.d.mts +15 -12
- package/src/foundry/client/documents/user.d.mts +10 -5
- package/src/foundry/client/documents/wall.d.mts +12 -5
- package/src/foundry/client/helpers/client-settings.d.mts +7 -3
- package/src/foundry/common/abstract/document.d.mts +98 -50
- package/src/foundry/common/abstract/type-data.d.mts +35 -10
- package/src/foundry/common/data/data.d.mts +2 -2
- package/src/foundry/common/data/fields.d.mts +71 -59
- package/src/foundry/common/documents/active-effect.d.mts +6 -5
- package/src/foundry/common/documents/actor-delta.d.mts +6 -5
- package/src/foundry/common/documents/actor.d.mts +6 -5
- package/src/foundry/common/documents/adventure.d.mts +6 -5
- package/src/foundry/common/documents/ambient-light.d.mts +6 -5
- package/src/foundry/common/documents/ambient-sound.d.mts +6 -5
- package/src/foundry/common/documents/card.d.mts +6 -5
- package/src/foundry/common/documents/cards.d.mts +6 -5
- package/src/foundry/common/documents/chat-message.d.mts +6 -5
- package/src/foundry/common/documents/combat.d.mts +6 -5
- package/src/foundry/common/documents/combatant-group.d.mts +6 -5
- package/src/foundry/common/documents/combatant.d.mts +6 -5
- package/src/foundry/common/documents/drawing.d.mts +6 -5
- package/src/foundry/common/documents/fog-exploration.d.mts +6 -5
- package/src/foundry/common/documents/folder.d.mts +6 -5
- package/src/foundry/common/documents/item.d.mts +6 -5
- package/src/foundry/common/documents/journal-entry-category.d.mts +6 -5
- package/src/foundry/common/documents/journal-entry-page.d.mts +6 -5
- package/src/foundry/common/documents/journal-entry.d.mts +6 -5
- package/src/foundry/common/documents/macro.d.mts +6 -5
- package/src/foundry/common/documents/measured-template.d.mts +6 -5
- package/src/foundry/common/documents/note.d.mts +6 -5
- package/src/foundry/common/documents/playlist-sound.d.mts +6 -5
- package/src/foundry/common/documents/playlist.d.mts +6 -5
- package/src/foundry/common/documents/region-behavior.d.mts +6 -5
- package/src/foundry/common/documents/region.d.mts +6 -5
- package/src/foundry/common/documents/roll-table.d.mts +6 -5
- package/src/foundry/common/documents/scene.d.mts +6 -5
- package/src/foundry/common/documents/setting.d.mts +4 -3
- package/src/foundry/common/documents/table-result.d.mts +6 -5
- package/src/foundry/common/documents/tile.d.mts +6 -5
- package/src/foundry/common/documents/token.d.mts +6 -5
- package/src/foundry/common/documents/user.d.mts +6 -5
- package/src/foundry/common/documents/wall.d.mts +6 -5
- package/src/foundry/common/packages/base-world.d.mts +31 -29
- package/src/types/augments/pixi.d.mts +4 -0
- 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:
|
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`
|
7
|
+
// `tests` are excluded to speed up typechecking.
|
11
8
|
"exclude": ["src/index-lenient.d.mts", "tests", "test", "cvise"]
|
12
9
|
}
|