@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 +3 -3
- package/src/foundry/client/documents/active-effect.d.mts +1 -1
- package/src/foundry/client/documents/actor-delta.d.mts +1 -1
- package/src/foundry/client/documents/actor.d.mts +1 -1
- package/src/foundry/client/documents/card.d.mts +1 -1
- package/src/foundry/client/documents/cards.d.mts +1 -1
- package/src/foundry/client/documents/chat-message.d.mts +1 -1
- package/src/foundry/client/documents/combat.d.mts +1 -1
- package/src/foundry/client/documents/combatant-group.d.mts +1 -1
- package/src/foundry/client/documents/combatant.d.mts +1 -1
- package/src/foundry/client/documents/folder.d.mts +1 -1
- package/src/foundry/client/documents/item.d.mts +1 -1
- package/src/foundry/client/documents/journal-entry-page.d.mts +1 -1
- package/src/foundry/client/documents/macro.d.mts +1 -1
- package/src/foundry/client/documents/region-behavior.d.mts +1 -1
- package/src/foundry/client/documents/table-result.d.mts +1 -1
- package/src/foundry/client/documents/token.d.mts +16 -16
- package/src/foundry/client/packages/system.d.mts +1 -1
- package/tsconfig.json +1 -1
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.
|
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
|
-
"./
|
21
|
+
"./workers": {
|
22
22
|
"types": "./src/foundry/public/scripts/workers/index.d.mts"
|
23
23
|
},
|
24
|
-
"./
|
24
|
+
"./workers/image-compressor": {
|
25
25
|
"types": "./src/foundry/public/scripts/workers/image-compressor.d.mts"
|
26
26
|
}
|
27
27
|
},
|
@@ -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 "
|
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 "
|
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 "
|
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 "
|
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 "
|
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 "
|
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 "
|
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 "
|
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 "
|
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 "
|
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 "
|
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 "
|
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 "
|
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 "
|
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
|
-
|
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 "
|
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
|
}
|