@league-of-foundry-developers/foundry-vtt-types 13.346.0-beta.20250704113344 → 13.346.0-beta.20250704115832
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 +1 -1
- package/src/configuration/configuration.d.mts +3 -3
- package/src/foundry/client/documents/actor-delta.d.mts +2 -2
- package/src/foundry/common/documents/active-effect.d.mts +2 -0
- package/src/foundry/common/documents/actor-delta.d.mts +6 -0
- package/src/foundry/common/documents/actor.d.mts +2 -0
- package/src/foundry/common/documents/card.d.mts +2 -0
- package/src/foundry/common/documents/cards.d.mts +2 -0
- package/src/foundry/common/documents/chat-message.d.mts +2 -0
- package/src/foundry/common/documents/combat.d.mts +2 -0
- package/src/foundry/common/documents/combatant-group.d.mts +2 -0
- package/src/foundry/common/documents/combatant.d.mts +2 -0
- package/src/foundry/common/documents/folder.d.mts +3 -1
- package/src/foundry/common/documents/item.d.mts +2 -0
- package/src/foundry/common/documents/macro.d.mts +3 -1
- package/src/foundry/common/documents/region-behavior.d.mts +2 -0
- package/src/foundry/common/documents/table-result.d.mts +3 -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.20250704115832",
|
5
5
|
"description": "TypeScript type definitions for Foundry VTT",
|
6
6
|
"type": "module",
|
7
7
|
"types": "./src/index.d.mts",
|
@@ -314,9 +314,9 @@ export interface SettingConfig {
|
|
314
314
|
choices: InterfaceToObject<typeof CONFIG.Dice.rollModes>;
|
315
315
|
},
|
316
316
|
// Note(LukeAbby): This override is necessary because the `initial` wasn't removing `null`.
|
317
|
-
|
318
|
-
|
319
|
-
|
317
|
+
CONFIG.Dice.RollMode | null | undefined,
|
318
|
+
CONFIG.Dice.RollMode,
|
319
|
+
CONFIG.Dice.RollMode
|
320
320
|
>;
|
321
321
|
"core.rtcClientSettings": typeof AVSettings.schemaFields.client;
|
322
322
|
"core.rtcWorldSettings": typeof AVSettings.schemaFields.world;
|
@@ -549,9 +549,9 @@ declare class ActorDelta<out SubType extends ActorDelta.SubType = ActorDelta.Sub
|
|
549
549
|
protected override _initialize(options?: ActorDelta.InitializeOptions): void;
|
550
550
|
|
551
551
|
/** Pass-through the type from the synthetic Actor, if it exists. */
|
552
|
-
get type():
|
552
|
+
get type(): SubType;
|
553
553
|
|
554
|
-
set type(type
|
554
|
+
set type(type);
|
555
555
|
|
556
556
|
protected _type: string;
|
557
557
|
|
@@ -112,6 +112,12 @@ declare abstract class BaseActorDelta<
|
|
112
112
|
* separate like this helps against circularities.
|
113
113
|
*/
|
114
114
|
|
115
|
+
// This is technically a property in this class but in the interest of avoiding an error it's been
|
116
|
+
// made a getter/setter pair.
|
117
|
+
get type(): SubType;
|
118
|
+
|
119
|
+
set type(type);
|
120
|
+
|
115
121
|
/* Document overrides */
|
116
122
|
|
117
123
|
// Same as Document for now
|
@@ -11,7 +11,7 @@ import type { LogCompatibilityWarningOptions } from "../utils/logging.d.mts";
|
|
11
11
|
// Note(LukeAbby): You may wonder why documents don't simply pass the `Parent` generic parameter.
|
12
12
|
// This pattern evolved from trying to avoid circular loops and even internal tsc errors.
|
13
13
|
// See: https://gist.github.com/LukeAbby/0d01b6e20ef19ebc304d7d18cef9cc21
|
14
|
-
declare abstract class BaseFolder<out
|
14
|
+
declare abstract class BaseFolder<out SubType extends BaseFolder.SubType = BaseFolder.SubType> extends Document<
|
15
15
|
"Folder",
|
16
16
|
BaseFolder.Schema,
|
17
17
|
any
|
@@ -76,6 +76,8 @@ declare abstract class BaseFolder<out _SubType extends BaseFolder.SubType = Base
|
|
76
76
|
* separate like this helps against circularities.
|
77
77
|
*/
|
78
78
|
|
79
|
+
type: SubType;
|
80
|
+
|
79
81
|
/* Document overrides */
|
80
82
|
|
81
83
|
// Same as Document for now
|
@@ -11,7 +11,7 @@ import type { LogCompatibilityWarningOptions } from "../utils/logging.d.mts";
|
|
11
11
|
// Note(LukeAbby): You may wonder why documents don't simply pass the `Parent` generic parameter.
|
12
12
|
// This pattern evolved from trying to avoid circular loops and even internal tsc errors.
|
13
13
|
// See: https://gist.github.com/LukeAbby/0d01b6e20ef19ebc304d7d18cef9cc21
|
14
|
-
declare abstract class BaseMacro<out
|
14
|
+
declare abstract class BaseMacro<out SubType extends BaseMacro.SubType = BaseMacro.SubType> extends Document<
|
15
15
|
"Macro",
|
16
16
|
BaseMacro.Schema,
|
17
17
|
any
|
@@ -101,6 +101,8 @@ declare abstract class BaseMacro<out _SubType extends BaseMacro.SubType = BaseMa
|
|
101
101
|
* separate like this helps against circularities.
|
102
102
|
*/
|
103
103
|
|
104
|
+
type: SubType;
|
105
|
+
|
104
106
|
/* Document overrides */
|
105
107
|
|
106
108
|
override readonly parentCollection: Macro.ParentCollectionName | null;
|
@@ -12,7 +12,7 @@ import type { LogCompatibilityWarningOptions } from "../utils/logging.d.mts";
|
|
12
12
|
// This pattern evolved from trying to avoid circular loops and even internal tsc errors.
|
13
13
|
// See: https://gist.github.com/LukeAbby/0d01b6e20ef19ebc304d7d18cef9cc21
|
14
14
|
declare abstract class BaseTableResult<
|
15
|
-
out
|
15
|
+
out SubType extends BaseTableResult.SubType = BaseTableResult.SubType,
|
16
16
|
> extends Document<"TableResult", BaseTableResult.Schema, any> {
|
17
17
|
/**
|
18
18
|
* @param data - Initial data from which to construct the `BaseTableResult`
|
@@ -87,6 +87,8 @@ declare abstract class BaseTableResult<
|
|
87
87
|
* separate like this helps against circularities.
|
88
88
|
*/
|
89
89
|
|
90
|
+
type: SubType;
|
91
|
+
|
90
92
|
/* Document overrides */
|
91
93
|
|
92
94
|
// Same as Document for now
|