@league-of-foundry-developers/foundry-vtt-types 9.245.0 → 9.249.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@league-of-foundry-developers/foundry-vtt-types",
3
- "version": "9.245.0",
3
+ "version": "9.249.0",
4
4
  "description": "TypeScript type definitions for Foundry VTT",
5
5
  "exports": {
6
6
  ".": {
@@ -2,7 +2,6 @@ import { ConfiguredDocumentClass, ConfiguredObjectClassForName, DocumentConstruc
2
2
  import { DocumentModificationOptions } from '../../common/abstract/document.mjs';
3
3
  import EmbeddedCollection from '../../common/abstract/embedded-collection.mjs';
4
4
  import type { ActorDataConstructorData } from '../../common/data/data.mjs/actorData.js';
5
- import type { ItemDataSource } from '../../common/data/data.mjs/itemData';
6
5
 
7
6
  declare global {
8
7
  /**
@@ -65,13 +64,10 @@ declare global {
65
64
  /**
66
65
  * Provide an object which organizes all embedded Item instances by their type
67
66
  */
68
- get itemTypes(): {
69
- [Key in foundry.documents.BaseItem['data']['type']]: Array<
70
- InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseItem>> & {
71
- data: foundry.data.ItemData & { type: Key; _source: ItemDataSource & { type: Key } };
72
- }
73
- >;
74
- };
67
+ get itemTypes(): Record<
68
+ foundry.documents.BaseItem['data']['type'],
69
+ Array<InstanceType<ConfiguredDocumentClass<typeof foundry.documents.BaseItem>>>
70
+ >;
75
71
  /**
76
72
  * Test whether an Actor entity is a synthetic representation of a Token (if true) or a full Entity (if false)
77
73
  */