@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250720082736 → 13.346.0-beta.20250720141111

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.20250720082736",
4
+ "version": "13.346.0-beta.20250720141111",
5
5
  "description": "TypeScript type definitions for Foundry VTT",
6
6
  "type": "module",
7
7
  "types": "./src/index.d.mts",
@@ -18,10 +18,10 @@
18
18
  "./configuration": {
19
19
  "types": "./src/configuration/index.d.mts"
20
20
  },
21
- "./worker": {
21
+ "./workers": {
22
22
  "types": "./src/foundry/public/scripts/workers/index.d.mts"
23
23
  },
24
- "./worker/image-compressor": {
24
+ "./workers/image-compressor": {
25
25
  "types": "./src/foundry/public/scripts/workers/image-compressor.d.mts"
26
26
  }
27
27
  },
@@ -1,4 +1,4 @@
1
- import type { ConfiguredActiveEffect } from "fvtt-types/configuration";
1
+ import type { ConfiguredActiveEffect } from "#configuration";
2
2
  import type {
3
3
  AnyMutableObject,
4
4
  Identity,
@@ -1,7 +1,7 @@
1
1
  import type { DataSchema } from "#common/data/fields.d.mts";
2
2
  import type { BaseActorDelta } from "#common/documents/_module.d.mts";
3
3
  import type Document from "#common/abstract/document.d.mts";
4
- import type { ConfiguredActorDelta } from "fvtt-types/configuration";
4
+ import type { ConfiguredActorDelta } from "#configuration";
5
5
  import type { Identity, InexactPartial, Merge, NullishProps } from "#utils";
6
6
  import type DataModel from "#common/abstract/data.d.mts";
7
7
 
@@ -2,7 +2,7 @@ import type { AnyObject, InexactPartial, NullishProps, Merge, Identity } from "#
2
2
  import type { documents } from "#client/client.d.mts";
3
3
  import type Document from "#common/abstract/document.d.mts";
4
4
  import type BaseActor from "#common/documents/actor.d.mts";
5
- import type { ConfiguredActor } from "fvtt-types/configuration";
5
+ import type { ConfiguredActor } from "#configuration";
6
6
  import type { DataSchema } from "#common/data/fields.d.mts";
7
7
  import type { PrototypeToken } from "#common/data/data.mjs";
8
8
  import type { Token } from "#client/canvas/placeables/_module.d.mts";
@@ -1,4 +1,4 @@
1
- import type { ConfiguredCard } from "fvtt-types/configuration";
1
+ import type { ConfiguredCard } from "#configuration";
2
2
  import type { AnyObject, DeepPartial, Identity, InexactPartial, Merge } from "#utils";
3
3
  import type { documents } from "#client/client.d.mts";
4
4
  import type Document from "#common/abstract/document.d.mts";
@@ -1,4 +1,4 @@
1
- import type { ConfiguredCards } from "fvtt-types/configuration";
1
+ import type { ConfiguredCards } from "#configuration";
2
2
  import type { Identity, InexactPartial, Merge, NullishProps } from "#utils";
3
3
  import type Document from "#common/abstract/document.d.mts";
4
4
  import type { DataSchema } from "#common/data/fields.d.mts";
@@ -1,4 +1,4 @@
1
- import type { ConfiguredChatMessage } from "fvtt-types/configuration";
1
+ import type { ConfiguredChatMessage } from "#configuration";
2
2
  import type { AnyObject, Identity, InexactPartial, InterfaceToObject, Merge, NullishProps } from "#utils";
3
3
  import type { documents } from "#client/client.d.mts";
4
4
  import type Document from "#common/abstract/document.d.mts";
@@ -1,4 +1,4 @@
1
- import type { ConfiguredCombat } from "fvtt-types/configuration";
1
+ import type { ConfiguredCombat } from "#configuration";
2
2
  import type { Identity, InexactPartial, Merge, NullishProps } from "#utils";
3
3
  import type { documents } from "#client/client.d.mts";
4
4
  import type Document from "#common/abstract/document.d.mts";
@@ -1,4 +1,4 @@
1
- import type { ConfiguredCombatantGroup } from "fvtt-types/configuration";
1
+ import type { ConfiguredCombatantGroup } from "#configuration";
2
2
  import type { Identity, InexactPartial, Merge } from "#utils";
3
3
  import type Document from "#common/abstract/document.mjs";
4
4
  import type { DataSchema } from "#common/data/fields.d.mts";
@@ -1,4 +1,4 @@
1
- import type { ConfiguredCombatant } from "fvtt-types/configuration";
1
+ import type { ConfiguredCombatant } from "#configuration";
2
2
  import type { Identity, InexactPartial, Merge } from "#utils";
3
3
  import type { documents } from "#client/client.d.mts";
4
4
  import type Document from "#common/abstract/document.d.mts";
@@ -1,4 +1,4 @@
1
- import type { ConfiguredFolder } from "fvtt-types/configuration";
1
+ import type { ConfiguredFolder } from "#configuration";
2
2
  import type { Identity, InexactPartial, IntentionalPartial, Merge, NullishProps } from "#utils";
3
3
  import type Document from "#common/abstract/document.d.mts";
4
4
  import type { DataSchema } from "#common/data/fields.d.mts";
@@ -1,4 +1,4 @@
1
- import type { ConfiguredItem } from "fvtt-types/configuration";
1
+ import type { ConfiguredItem } from "#configuration";
2
2
  import type { documents } from "#client/client.d.mts";
3
3
  import type Document from "#common/abstract/document.d.mts";
4
4
  import type { DataSchema } from "#common/data/fields.d.mts";
@@ -1,4 +1,4 @@
1
- import type { ConfiguredJournalEntryPage } from "fvtt-types/configuration";
1
+ import type { ConfiguredJournalEntryPage } from "#configuration";
2
2
  import type { AnyObject, Identity, InexactPartial, Merge, NullishProps } from "#utils";
3
3
  import type Document from "#common/abstract/document.d.mts";
4
4
  import type { DataSchema } from "#common/data/fields.d.mts";
@@ -1,4 +1,4 @@
1
- import type { ConfiguredMacro } from "fvtt-types/configuration";
1
+ import type { ConfiguredMacro } from "#configuration";
2
2
  import type { Identity, InexactPartial, Merge, NullishProps } from "#utils";
3
3
  import type { documents } from "#client/client.d.mts";
4
4
  import type Document from "#common/abstract/document.d.mts";
@@ -1,4 +1,4 @@
1
- import type { ConfiguredRegionBehavior } from "fvtt-types/configuration";
1
+ import type { ConfiguredRegionBehavior } from "#configuration";
2
2
  import type Document from "#common/abstract/document.d.mts";
3
3
  import type BaseRegionBehavior from "#common/documents/region-behavior.d.mts";
4
4
  import type { DataSchema } from "#common/data/fields.d.mts";
@@ -1,4 +1,4 @@
1
- import type { ConfiguredTableResult } from "fvtt-types/configuration";
1
+ import type { ConfiguredTableResult } from "#configuration";
2
2
  import type { Identity, InexactPartial, Merge } from "#utils";
3
3
  import type Document from "#common/abstract/document.d.mts";
4
4
  import type { DataSchema } from "#common/data/fields.d.mts";
@@ -1044,6 +1044,21 @@ declare namespace TokenDocument {
1044
1044
 
1045
1045
  interface GetBarAttributeOptions extends _GetBarAttributeOptions {}
1046
1046
 
1047
+ interface SingleAttributeBar {
1048
+ type: "value";
1049
+ attribute: string;
1050
+ value: number;
1051
+ editable: boolean;
1052
+ }
1053
+
1054
+ interface ObjectAttributeBar {
1055
+ type: "bar";
1056
+ attribute: string;
1057
+ value: number;
1058
+ max: number;
1059
+ editable: boolean;
1060
+ }
1061
+
1047
1062
  type GetBarAttributeReturn = SingleAttributeBar | ObjectAttributeBar | null;
1048
1063
 
1049
1064
  /** @internal */
@@ -2132,19 +2147,4 @@ declare class TokenDocument extends BaseToken.Internal.CanvasDocument {
2132
2147
  #TokenDocument: true;
2133
2148
  }
2134
2149
 
2135
- interface SingleAttributeBar {
2136
- type: "value";
2137
- attribute: string;
2138
- value: number;
2139
- editable: boolean;
2140
- }
2141
-
2142
- interface ObjectAttributeBar {
2143
- type: "bar";
2144
- attribute: string;
2145
- value: number;
2146
- max: number;
2147
- editable: boolean;
2148
- }
2149
-
2150
- export { TokenDocument as default, SingleAttributeBar, ObjectAttributeBar };
2150
+ export default TokenDocument;
@@ -3,7 +3,7 @@ import type AdditionalTypesField from "#common/packages/sub-types.d.mts";
3
3
  import type DataModel from "#common/abstract/data.mjs";
4
4
  import type ClientPackageMixin from "./client-package.d.mts";
5
5
  import type { SystemNameConfig } from "#configuration";
6
- import type { GetKey } from "fvtt-types/utils";
6
+ import type { GetKey } from "#utils";
7
7
 
8
8
  import fields = foundry.data.fields;
9
9
  import Game = foundry.Game;
package/tsconfig.json CHANGED
@@ -5,5 +5,5 @@
5
5
  "include": ["**/*", ".*", ".**/**/*"],
6
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.
7
7
  // `tests` are excluded to speed up typechecking.
8
- "exclude": ["src/index-lenient.d.mts", "tests"]
8
+ "exclude": ["src/index-lenient.d.mts", "tests", "cvise"]
9
9
  }