@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 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.20250704113344",
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
- (string & keyof typeof CONFIG.Dice.rollModes) | null | undefined,
318
- string & keyof typeof CONFIG.Dice.rollModes,
319
- string & keyof typeof CONFIG.Dice.rollModes
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(): string;
552
+ get type(): SubType;
553
553
 
554
- set type(type: string);
554
+ set type(type);
555
555
 
556
556
  protected _type: string;
557
557
 
@@ -89,6 +89,8 @@ declare abstract class BaseActiveEffect<
89
89
  * separate like this helps against circularities.
90
90
  */
91
91
 
92
+ type: SubType;
93
+
92
94
  /* Document overrides */
93
95
 
94
96
  // Same as Document for now
@@ -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
@@ -110,6 +110,8 @@ declare abstract class BaseActor<out SubType extends Actor.SubType = Actor.SubTy
110
110
  * separate like this helps against circularities.
111
111
  */
112
112
 
113
+ type: SubType;
114
+
113
115
  /* Document overrides */
114
116
 
115
117
  // Same as Document for now
@@ -72,6 +72,8 @@ declare abstract class BaseCard<out SubType extends BaseCard.SubType = BaseCard.
72
72
  * separate like this helps against circularities.
73
73
  */
74
74
 
75
+ type: SubType;
76
+
75
77
  /* Document overrides */
76
78
 
77
79
  // Same as Document for now
@@ -86,6 +86,8 @@ declare abstract class BaseCards<out SubType extends BaseCards.SubType = BaseCar
86
86
  * separate like this helps against circularities.
87
87
  */
88
88
 
89
+ type: SubType;
90
+
89
91
  /* Document overrides */
90
92
 
91
93
  // Same as Document for now
@@ -84,6 +84,8 @@ declare abstract class BaseChatMessage<
84
84
  * separate like this helps against circularities.
85
85
  */
86
86
 
87
+ type: SubType;
88
+
87
89
  /* Document overrides */
88
90
 
89
91
  override readonly parentCollection: ChatMessage.ParentCollectionName | null;
@@ -89,6 +89,8 @@ declare abstract class BaseCombat<out SubType extends BaseCombat.SubType = BaseC
89
89
  * separate like this helps against circularities.
90
90
  */
91
91
 
92
+ type: SubType;
93
+
92
94
  /* Document overrides */
93
95
 
94
96
  // Same as Document for now
@@ -55,6 +55,8 @@ declare abstract class BaseCombatantGroup<
55
55
  * separate like this helps against circularities.
56
56
  */
57
57
 
58
+ type: SubType;
59
+
58
60
  /* Document overrides */
59
61
 
60
62
  // Same as Document for now
@@ -70,6 +70,8 @@ declare abstract class BaseCombatant<
70
70
  * separate like this helps against circularities.
71
71
  */
72
72
 
73
+ type: SubType;
74
+
73
75
  /* Document overrides */
74
76
 
75
77
  // 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 _SubType extends BaseFolder.SubType = BaseFolder.SubType> extends Document<
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
@@ -93,6 +93,8 @@ declare abstract class BaseItem<out SubType extends Item.SubType = Item.SubType>
93
93
  * separate like this helps against circularities.
94
94
  */
95
95
 
96
+ type: SubType;
97
+
96
98
  /* Document overrides */
97
99
 
98
100
  // 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 _SubType extends BaseMacro.SubType = BaseMacro.SubType> extends Document<
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;
@@ -73,6 +73,8 @@ declare abstract class BaseRegionBehavior<
73
73
  * separate like this helps against circularities.
74
74
  */
75
75
 
76
+ type: SubType;
77
+
76
78
  /* Document overrides */
77
79
 
78
80
  // Same as Document for now
@@ -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 _SubType extends BaseTableResult.SubType = BaseTableResult.SubType,
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