@league-of-foundry-developers/foundry-vtt-types 9.249.0 → 9.249.4
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 +2 -2
- package/src/foundry/common/abstract/data.mjs.d.ts +2 -2
- package/src/foundry/common/abstract/document.mjs.d.ts +20 -9
- package/src/foundry/common/config.mjs/releaseData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/activeEffectData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/actorData.d.ts +1 -1
- package/src/foundry/common/data/data.mjs/adventureData.d.ts +14 -12
- package/src/foundry/common/data/data.mjs/ambientLightData.d.ts +5 -3
- package/src/foundry/common/data/data.mjs/ambientSoundData.d.ts +62 -16
- package/src/foundry/common/data/data.mjs/animationData.d.ts +13 -5
- package/src/foundry/common/data/data.mjs/cardData.d.ts +4 -4
- package/src/foundry/common/data/data.mjs/cardFaceData.d.ts +5 -3
- package/src/foundry/common/data/data.mjs/cardsData.d.ts +3 -3
- package/src/foundry/common/data/data.mjs/chatMessageData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/chatSpeakerData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/combatData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/combatantData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/darknessActivation.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/drawingData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/effectChangeData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/effectDurationData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/fogExplorationData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/folderData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/journalEntryData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/lightData.d.ts +7 -5
- package/src/foundry/common/data/data.mjs/macroData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/measuredTemplateData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/noteData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/playlistData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/playlistSoundData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/prototypeTokenData.d.ts +6 -4
- package/src/foundry/common/data/data.mjs/rollTableData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/sceneData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/settingData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/tableResultData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/tileData.d.ts +4 -2
- package/src/foundry/common/data/data.mjs/tileOcclusion.d.ts +4 -2
- package/src/foundry/common/data/data.mjs/tokenBarData.d.ts +4 -2
- package/src/foundry/common/data/data.mjs/tokenData.d.ts +5 -3
- package/src/foundry/common/data/data.mjs/userData.d.ts +3 -1
- package/src/foundry/common/data/data.mjs/videoData.d.ts +4 -2
- package/src/foundry/common/data/data.mjs/wallData.d.ts +4 -2
- package/src/foundry/common/documents.mjs/baseActiveEffect.d.ts +15 -12
- package/src/foundry/common/documents.mjs/baseActor.d.ts +24 -21
- package/src/foundry/common/documents.mjs/baseAdventure.d.ts +14 -12
- package/src/foundry/common/documents.mjs/baseAmbientLight.d.ts +14 -11
- package/src/foundry/common/documents.mjs/baseAmbientSound.d.ts +14 -11
- package/src/foundry/common/documents.mjs/baseCard.d.ts +27 -28
- package/src/foundry/common/documents.mjs/baseCards.d.ts +18 -16
- package/src/foundry/common/documents.mjs/baseChatMessage.d.ts +24 -17
- package/src/foundry/common/documents.mjs/baseCombat.d.ts +21 -20
- package/src/foundry/common/documents.mjs/baseCombatant.d.ts +25 -18
- package/src/foundry/common/documents.mjs/baseDrawing.d.ts +26 -23
- package/src/foundry/common/documents.mjs/baseFogExploration.d.ts +19 -17
- package/src/foundry/common/documents.mjs/baseFolder.d.ts +14 -12
- package/src/foundry/common/documents.mjs/baseItem.d.ts +25 -19
- package/src/foundry/common/documents.mjs/baseJournalEntry.d.ts +16 -14
- package/src/foundry/common/documents.mjs/baseMacro.d.ts +21 -18
- package/src/foundry/common/documents.mjs/baseMeasuredTemplate.d.ts +34 -18
- package/src/foundry/common/documents.mjs/baseNote.d.ts +20 -14
- package/src/foundry/common/documents.mjs/basePlaylist.d.ts +16 -14
- package/src/foundry/common/documents.mjs/basePlaylistSound.d.ts +14 -11
- package/src/foundry/common/documents.mjs/baseRollTable.d.ts +16 -14
- package/src/foundry/common/documents.mjs/baseScene.d.ts +23 -21
- package/src/foundry/common/documents.mjs/baseSetting.d.ts +18 -16
- package/src/foundry/common/documents.mjs/baseTableResult.d.ts +27 -19
- package/src/foundry/common/documents.mjs/baseTile.d.ts +17 -11
- package/src/foundry/common/documents.mjs/baseToken.d.ts +20 -16
- package/src/foundry/common/documents.mjs/baseUser.d.ts +45 -11
- package/src/foundry/common/documents.mjs/baseWall.d.ts +17 -15
- package/src/foundry/common/packages.mjs/packageAuthorData.d.ts +3 -1
- package/src/foundry/common/packages.mjs/packageCompendiumData.d.ts +4 -2
- package/src/foundry/common/packages.mjs/packageData.d.ts +3 -4
- package/src/foundry/common/packages.mjs/packageDependencyData.d.ts +3 -1
- package/src/foundry/common/packages.mjs/packageLanguageData.d.ts +3 -1
- package/src/foundry/common/utils/primitives.mjs.d.ts +1 -1
- package/src/foundry/foundry.js/application.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/itemSheet.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/entitySheetConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +1 -1
- package/src/foundry/foundry.js/applications/sidebarTabs/chatLog.d.ts +1 -1
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +1 -1
- package/src/foundry/foundry.js/avSettings.d.ts +11 -0
- package/src/foundry/foundry.js/clientDocumentMixin.d.ts +36 -34
- package/src/foundry/foundry.js/clientDocuments/activeEffect.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/actor.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/chatMessage.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/combat.d.ts +5 -5
- package/src/foundry/foundry.js/clientDocuments/item.d.ts +2 -2
- package/src/foundry/foundry.js/clientDocuments/playlist.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/scene.d.ts +39 -38
- package/src/foundry/foundry.js/clientDocuments/user.d.ts +27 -35
- package/src/foundry/foundry.js/clientSettings.d.ts +1 -1
- package/src/foundry/foundry.js/collections/documentCollection.d.ts +65 -11
- package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +78 -67
- package/src/foundry/foundry.js/collections/documentCollections/worldCollection.d.ts +73 -32
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/actors.d.ts +3 -37
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/combatEncounters.d.ts +5 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/fogExplorations.d.ts +0 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/folders.d.ts +1 -1
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/items.d.ts +1 -22
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/journal.d.ts +1 -1
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/macros.d.ts +3 -8
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/messages.d.ts +7 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/playlists.d.ts +5 -5
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/rollTables.d.ts +1 -1
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/scenes.d.ts +3 -2
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/users.d.ts +7 -4
- package/src/foundry/foundry.js/collections/documentCollections/worldCollections/worldSettings.d.ts +2 -2
- package/src/foundry/foundry.js/hooks.d.ts +3 -3
- package/src/foundry/foundry.js/pixi/containers/ruler.d.ts +18 -7
- package/src/foundry/foundry.js/pixi/points/wallEndpoint.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/polygons/pointSourcePolygons/clockwiseSweepPolygon.d.ts +1 -1
- package/src/foundry/foundry.js/pointSources/lightSource.d.ts +1 -1
- package/src/foundry/foundry.js/pointSources/soundSource.d.ts +1 -1
- package/src/foundry/foundry.js/pointSources/visionSource.d.ts +1 -1
- package/src/foundry/foundry.js/polygonEdge.d.ts +1 -1
- package/src/foundry/foundry.js/ray.d.ts +1 -1
- package/src/types/helperTypes.d.ts +31 -13
@@ -62,20 +62,22 @@ interface PackageCompendiumDataConstructorData {
|
|
62
62
|
system?: string | null | undefined;
|
63
63
|
}
|
64
64
|
|
65
|
+
type PackageCompendiumDataSource = PropertiesToSource<PackageCompendiumDataProperties>;
|
66
|
+
|
65
67
|
/**
|
66
68
|
* An inner data object which represents a single compendium pack definition provided by a package in the packs array.
|
67
69
|
*/
|
68
70
|
export class PackageCompendiumData extends DocumentData<
|
69
71
|
PackageCompendiumDataSchema,
|
70
72
|
PackageCompendiumDataProperties,
|
71
|
-
|
73
|
+
PackageCompendiumDataSource,
|
72
74
|
PackageCompendiumDataConstructorData
|
73
75
|
> {
|
74
76
|
/** @override */
|
75
77
|
static defineSchema(): PackageCompendiumDataSchema;
|
76
78
|
|
77
79
|
/** @override */
|
78
|
-
_initializeSource(data: PackageCompendiumDataConstructorData):
|
80
|
+
_initializeSource(data: PackageCompendiumDataConstructorData): PackageCompendiumDataSource;
|
79
81
|
}
|
80
82
|
|
81
83
|
// eslint-disable-next-line @typescript-eslint/no-empty-interface
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FieldReturnType, PropertiesToSource } from '../../../types/helperTypes';
|
2
2
|
import { DocumentData } from '../abstract/module.mjs';
|
3
|
-
import type { PACKAGE_AVAILABILITY_CODES } from '../constants.mjs
|
3
|
+
import type { PACKAGE_AVAILABILITY_CODES } from '../constants.mjs';
|
4
4
|
import * as fields from '../data/fields.mjs';
|
5
5
|
import { PackageAuthorData, PackageAuthorDataConstructorData } from './packageAuthorData';
|
6
6
|
import { PackageCompendiumData, PackageCompendiumDataConstructorData } from './packageCompendiumData';
|
@@ -296,7 +296,6 @@ interface PackageDataConstructorData {
|
|
296
296
|
*/
|
297
297
|
protected?: boolean | null | undefined;
|
298
298
|
}
|
299
|
-
|
300
299
|
/**
|
301
300
|
* The data schema used to define a Package manifest.
|
302
301
|
* Specific types of packages extend this schema with additional fields.
|
@@ -305,12 +304,12 @@ export class PackageData<
|
|
305
304
|
Schema extends Omit<PackageDataSchema, 'system'>,
|
306
305
|
Properties extends Omit<PackageDataProperties, 'system'>,
|
307
306
|
ConstructorData extends Omit<PackageDataConstructorData, 'system'>
|
308
|
-
> extends DocumentData<Schema, Properties, PropertiesToSource<
|
307
|
+
> extends DocumentData<Schema, Properties, PropertiesToSource<Properties>, ConstructorData> {
|
309
308
|
/** @override */
|
310
309
|
static defineSchema(): Omit<PackageDataSchema, 'system'>;
|
311
310
|
|
312
311
|
/** @override */
|
313
|
-
_initializeSource(data: ConstructorData): PropertiesToSource<
|
312
|
+
_initializeSource(data: ConstructorData): PropertiesToSource<Properties>;
|
314
313
|
|
315
314
|
/**
|
316
315
|
* Determine the availability a package based on the version numbers of its dependencies.
|
@@ -43,13 +43,15 @@ interface PackageDependencyDataConstructorData {
|
|
43
43
|
manifest?: string | null | undefined;
|
44
44
|
}
|
45
45
|
|
46
|
+
type PackageDependencyDataSource = PropertiesToSource<PackageDependencyDataProperties>;
|
47
|
+
|
46
48
|
/**
|
47
49
|
* An inner data object which represents a single package dependency in the dependencies array.
|
48
50
|
*/
|
49
51
|
export class PackageDependencyData extends DocumentData<
|
50
52
|
PackageDependencyDataSchema,
|
51
53
|
PackageDependencyDataProperties,
|
52
|
-
|
54
|
+
PackageDependencyDataSource,
|
53
55
|
PackageDependencyDataConstructorData
|
54
56
|
> {
|
55
57
|
/** @override */
|
@@ -48,13 +48,15 @@ interface PackageLanguageDataConstructorData {
|
|
48
48
|
module?: string | null | undefined;
|
49
49
|
}
|
50
50
|
|
51
|
+
type PackageLanguageDataSource = PropertiesToSource<PackageLanguageDataProperties>;
|
52
|
+
|
51
53
|
/**
|
52
54
|
* An inner data object which represents a single language specification provided by a package in the languages array.
|
53
55
|
*/
|
54
56
|
export class PackageLanguageData extends DocumentData<
|
55
57
|
PackageLanguageDataSchema,
|
56
58
|
PackageLanguageDataProperties,
|
57
|
-
|
59
|
+
PackageLanguageDataSource,
|
58
60
|
PackageLanguageDataConstructorData
|
59
61
|
> {
|
60
62
|
/** @override */
|
package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import type { ConfiguredDocumentClassForName } from '../../../../../types/helperTypes';
|
2
2
|
import type { AmbientLightDataConstructorData } from '../../../../common/data/data.mjs/ambientLightData';
|
3
3
|
import type { AnimationDataConstructorData } from '../../../../common/data/data.mjs/animationData';
|
4
|
-
import type { DarknessActivationConstructorData } from '../../../../common/data/data.mjs/darknessActivation
|
5
|
-
import type { LightDataConstructorData } from '../../../../common/data/data.mjs/lightData
|
4
|
+
import type { DarknessActivationConstructorData } from '../../../../common/data/data.mjs/darknessActivation';
|
5
|
+
import type { LightDataConstructorData } from '../../../../common/data/data.mjs/lightData';
|
6
6
|
|
7
7
|
declare global {
|
8
8
|
/**
|
@@ -39,7 +39,7 @@ declare global {
|
|
39
39
|
/**
|
40
40
|
* A convenience reference to the Item entity
|
41
41
|
*/
|
42
|
-
get item():
|
42
|
+
get item(): this['object'];
|
43
43
|
|
44
44
|
/**
|
45
45
|
* The Actor instance which owns this item. This may be null if the item is
|
package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ConfiguredDocumentClassForName, ToObjectFalseType } from '../../../../../types/helperTypes';
|
2
|
-
import type { TableResultDataConstructorData } from '../../../../common/data/data.mjs/tableResultData
|
2
|
+
import type { TableResultDataConstructorData } from '../../../../common/data/data.mjs/tableResultData';
|
3
3
|
|
4
4
|
declare global {
|
5
5
|
/**
|
@@ -64,7 +64,7 @@ declare global {
|
|
64
64
|
static registerSheet(
|
65
65
|
documentClass: DocumentConstructor,
|
66
66
|
scope: string,
|
67
|
-
sheetClass: ConstructorOf<
|
67
|
+
sheetClass: ConstructorOf<FormApplication<FormApplicationOptions, any, any>>,
|
68
68
|
{ label, types, makeDefault }?: EntitySheetConfig.RegisterSheetOptions
|
69
69
|
): void;
|
70
70
|
|
@@ -91,7 +91,7 @@ declare global {
|
|
91
91
|
static unregisterSheet(
|
92
92
|
documentClass: DocumentConstructor,
|
93
93
|
scope: string,
|
94
|
-
sheetClass: ConstructorOf<
|
94
|
+
sheetClass: ConstructorOf<FormApplication<FormApplicationOptions, any, any>>,
|
95
95
|
{ types }?: { types?: string[] }
|
96
96
|
): void;
|
97
97
|
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { ConfiguredDocumentClassForName } from '../../../../types/helperTypes';
|
2
|
-
import type { TokenDataConstructorData } from '../../../common/data/data.mjs/tokenData
|
2
|
+
import type { TokenDataConstructorData } from '../../../common/data/data.mjs/tokenData';
|
3
3
|
|
4
4
|
declare global {
|
5
5
|
/**
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ConfiguredDocumentClass } from '../../../../types/helperTypes';
|
2
|
-
import type { ChatMessageDataConstructorData } from '../../../common/data/data.mjs/chatMessageData
|
2
|
+
import type { ChatMessageDataConstructorData } from '../../../common/data/data.mjs/chatMessageData';
|
3
3
|
|
4
4
|
declare global {
|
5
5
|
/**
|
@@ -8,7 +8,7 @@ declare global {
|
|
8
8
|
* @typeParam Options - The type of the options object
|
9
9
|
*/
|
10
10
|
abstract class SidebarDirectory<
|
11
|
-
Name extends foundry.CONST.DOCUMENT_TYPES
|
11
|
+
Name extends foundry.CONST.DOCUMENT_TYPES,
|
12
12
|
Options extends SidebarDirectory.Options = SidebarDirectory.Options
|
13
13
|
> extends SidebarTab<Options> {
|
14
14
|
constructor(options?: Partial<SidebarDirectory.Options>);
|
@@ -1,3 +1,14 @@
|
|
1
|
+
interface AVSettingsData {
|
2
|
+
/** Whether this user has muted themselves. */
|
3
|
+
muted?: boolean | undefined;
|
4
|
+
|
5
|
+
/** Whether this user has hidden their video. */
|
6
|
+
hidden?: boolean | undefined;
|
7
|
+
|
8
|
+
/** Whether the user is broadcasting audio. */
|
9
|
+
speaking?: boolean | undefined;
|
10
|
+
}
|
11
|
+
|
1
12
|
declare class AVSettings {
|
2
13
|
constructor();
|
3
14
|
|
@@ -11,6 +11,40 @@ declare global {
|
|
11
11
|
const ClientDocumentMixin: <T extends ConstructorOf<foundry.abstract.Document<any, any>>>(
|
12
12
|
Base: T
|
13
13
|
) => ClientDocumentConstructor<T>;
|
14
|
+
|
15
|
+
namespace ClientDocumentMixin {
|
16
|
+
interface CompendiumExportOptions {
|
17
|
+
/**
|
18
|
+
* Clear the flags object
|
19
|
+
* @defaultValue `false`
|
20
|
+
*/
|
21
|
+
clearFlags?: boolean | undefined;
|
22
|
+
|
23
|
+
/**
|
24
|
+
* Clear the currently assigned folder and sort order
|
25
|
+
* @defaultValue `true`
|
26
|
+
*/
|
27
|
+
clearSort?: boolean | undefined;
|
28
|
+
|
29
|
+
/**
|
30
|
+
* Clear document permissions
|
31
|
+
* @defaultValue `true`
|
32
|
+
*/
|
33
|
+
clearPermissions?: boolean | undefined;
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Clear fields which store document state
|
37
|
+
* @defaultValue `true`
|
38
|
+
*/
|
39
|
+
clearState?: boolean | undefined;
|
40
|
+
|
41
|
+
/**
|
42
|
+
* Retain the current Document id
|
43
|
+
* @defaultValue `false`
|
44
|
+
*/
|
45
|
+
keepId?: boolean | undefined;
|
46
|
+
}
|
47
|
+
}
|
14
48
|
}
|
15
49
|
|
16
50
|
type ClientDocumentConstructor<T extends ConstructorOf<foundry.abstract.Document<any, any>>> = Pick<T, keyof T> &
|
@@ -301,7 +335,7 @@ export declare class ClientDocumentMixin<T extends foundry.abstract.Document<any
|
|
301
335
|
* Export document data to a JSON file which can be saved by the client and later imported into a different session.
|
302
336
|
* @param options - Additional options passed to the {@link ClientDocumentMixin#toCompendium} method
|
303
337
|
*/
|
304
|
-
exportToJSON(options?: CompendiumExportOptions): void;
|
338
|
+
exportToJSON(options?: ClientDocumentMixin.CompendiumExportOptions): void;
|
305
339
|
|
306
340
|
/**
|
307
341
|
* A helper function to handle obtaining the relevant Document from dropped data provided via a DataTransfer event.
|
@@ -344,7 +378,7 @@ export declare class ClientDocumentMixin<T extends foundry.abstract.Document<any
|
|
344
378
|
*/
|
345
379
|
toCompendium(
|
346
380
|
pack?: CompendiumCollection<CompendiumCollection.Metadata> | null,
|
347
|
-
options?: CompendiumExportOptions
|
381
|
+
options?: ClientDocumentMixin.CompendiumExportOptions
|
348
382
|
): Omit<T['data']['_source'], '_id' | 'folder' | 'permission'> & {
|
349
383
|
permission?: T['data']['_source']['permission'];
|
350
384
|
};
|
@@ -355,38 +389,6 @@ export declare class ClientDocumentMixin<T extends foundry.abstract.Document<any
|
|
355
389
|
prepareEmbeddedEntities(): void;
|
356
390
|
}
|
357
391
|
|
358
|
-
interface CompendiumExportOptions {
|
359
|
-
/**
|
360
|
-
* Clear the flags object
|
361
|
-
* @defaultValue `false`
|
362
|
-
*/
|
363
|
-
clearFlags: boolean;
|
364
|
-
|
365
|
-
/**
|
366
|
-
* Clear the currently assigned folder and sort order
|
367
|
-
* @defaultValue `true`
|
368
|
-
*/
|
369
|
-
clearSort: boolean;
|
370
|
-
|
371
|
-
/**
|
372
|
-
* Clear document permissions
|
373
|
-
* @defaultValue `true`
|
374
|
-
*/
|
375
|
-
clearPermissions: boolean;
|
376
|
-
|
377
|
-
/**
|
378
|
-
* Clear fields which store document state
|
379
|
-
* @defaultValue `true`
|
380
|
-
*/
|
381
|
-
clearState: boolean;
|
382
|
-
|
383
|
-
/**
|
384
|
-
* Retain the current Document id
|
385
|
-
* @defaultValue `false`
|
386
|
-
*/
|
387
|
-
keepId: boolean;
|
388
|
-
}
|
389
|
-
|
390
392
|
interface SortOptions<T> {
|
391
393
|
/**
|
392
394
|
* @defaultValue `[]`
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ConfiguredDocumentClass } from '../../../types/helperTypes';
|
2
2
|
import { DocumentModificationOptions } from '../../common/abstract/document.mjs';
|
3
|
-
import type { ActiveEffectDataConstructorData } from '../../common/data/data.mjs/activeEffectData
|
3
|
+
import type { ActiveEffectDataConstructorData } from '../../common/data/data.mjs/activeEffectData';
|
4
4
|
import { EffectChangeData } from '../../common/data/data.mjs/effectChangeData';
|
5
5
|
|
6
6
|
declare global {
|
@@ -120,7 +120,7 @@ declare global {
|
|
120
120
|
/**
|
121
121
|
* Prepare a data object which defines the data schema used by dice roll commands against this Actor
|
122
122
|
*/
|
123
|
-
getRollData():
|
123
|
+
getRollData(): object;
|
124
124
|
|
125
125
|
/** @override */
|
126
126
|
protected _getSheetClass(): ConstructorOf<FormApplication> | null;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ConfiguredDocumentClass } from '../../../types/helperTypes';
|
2
2
|
import { DocumentModificationOptions } from '../../common/abstract/document.mjs';
|
3
|
-
import type { ChatMessageDataConstructorData } from '../../common/data/data.mjs/chatMessageData
|
3
|
+
import type { ChatMessageDataConstructorData } from '../../common/data/data.mjs/chatMessageData';
|
4
4
|
|
5
5
|
declare global {
|
6
6
|
/**
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import type { ConfiguredDocumentClass
|
1
|
+
import type { ConfiguredDocumentClass } from '../../../types/helperTypes';
|
2
2
|
import type { DocumentModificationOptions } from '../../common/abstract/document.mjs';
|
3
|
-
import type { ChatMessageDataConstructorData } from '../../common/data/data.mjs/chatMessageData
|
4
|
-
import type {
|
3
|
+
import type { ChatMessageDataConstructorData } from '../../common/data/data.mjs/chatMessageData';
|
4
|
+
import type { CombatantDataSource } from '../../common/data/data.mjs/combatantData';
|
5
5
|
|
6
6
|
declare global {
|
7
7
|
/**
|
@@ -177,7 +177,7 @@ declare global {
|
|
177
177
|
protected _onCreateEmbeddedDocuments(
|
178
178
|
type: string,
|
179
179
|
documents: InstanceType<ConfiguredDocumentClass<typeof Combatant>>[],
|
180
|
-
result:
|
180
|
+
result: CombatantDataSource[],
|
181
181
|
options: DocumentModificationOptions,
|
182
182
|
userId: string
|
183
183
|
): void;
|
@@ -186,7 +186,7 @@ declare global {
|
|
186
186
|
protected _onUpdateEmbeddedDocuments(
|
187
187
|
embeddedName: string,
|
188
188
|
documents: InstanceType<ConfiguredDocumentClass<typeof Combatant>>[],
|
189
|
-
result:
|
189
|
+
result: CombatantDataSource[],
|
190
190
|
options: DocumentModificationOptions,
|
191
191
|
userId: string
|
192
192
|
): void;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ConfiguredDocumentClass } from '../../../types/helperTypes';
|
2
|
-
import type { ItemDataConstructorData } from '../../common/data/data.mjs/itemData
|
2
|
+
import type { ItemDataConstructorData } from '../../common/data/data.mjs/itemData';
|
3
3
|
|
4
4
|
declare global {
|
5
5
|
/**
|
@@ -43,7 +43,7 @@ declare global {
|
|
43
43
|
/**
|
44
44
|
* Prepare a data object which defines the data schema used by dice roll commands against this Item
|
45
45
|
*/
|
46
|
-
getRollData():
|
46
|
+
getRollData(): object;
|
47
47
|
|
48
48
|
/** @override */
|
49
49
|
protected _getSheetClass(): typeof ItemSheet | null;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import type { ConfiguredDocumentClass } from '../../../types/helperTypes';
|
2
2
|
import type { DocumentModificationOptions } from '../../common/abstract/document.mjs';
|
3
|
-
import type { PlaylistDataConstructorData } from '../../common/data/data.mjs/playlistData
|
3
|
+
import type { PlaylistDataConstructorData } from '../../common/data/data.mjs/playlistData';
|
4
4
|
|
5
5
|
declare global {
|
6
6
|
/**
|
@@ -1,23 +1,24 @@
|
|
1
|
-
import { ConfiguredDocumentClass
|
2
|
-
import { DocumentModificationOptions } from '../../common/abstract/document.mjs';
|
3
|
-
import {
|
1
|
+
import type { ConfiguredDocumentClass } from '../../../types/helperTypes';
|
2
|
+
import type { DocumentModificationOptions } from '../../common/abstract/document.mjs';
|
3
|
+
import type {
|
4
4
|
AmbientLightDataConstructorData,
|
5
|
-
|
5
|
+
AmbientLightDataSource
|
6
6
|
} from '../../common/data/data.mjs/ambientLightData';
|
7
|
-
import {
|
7
|
+
import type {
|
8
8
|
AmbientSoundDataConstructorData,
|
9
|
-
|
9
|
+
AmbientSoundDataSource
|
10
10
|
} from '../../common/data/data.mjs/ambientSoundData';
|
11
|
-
import { DrawingDataConstructorData,
|
12
|
-
import {
|
11
|
+
import type { DrawingDataConstructorData, DrawingDataSource } from '../../common/data/data.mjs/drawingData';
|
12
|
+
import type {
|
13
13
|
MeasuredTemplateDataConstructorData,
|
14
|
-
|
14
|
+
MeasuredTemplateDataSource
|
15
15
|
} from '../../common/data/data.mjs/measuredTemplateData';
|
16
|
-
import { NoteDataConstructorData,
|
17
|
-
import type {
|
18
|
-
import {
|
19
|
-
import {
|
20
|
-
|
16
|
+
import type { NoteDataConstructorData, NoteDataSource } from '../../common/data/data.mjs/noteData';
|
17
|
+
import type { TileDataConstructorData, TileDataSource } from '../../common/data/data.mjs/tileData';
|
18
|
+
import type { TokenDataConstructorData, TokenDataSource } from '../../common/data/data.mjs/tokenData';
|
19
|
+
import type { WallDataConstructorData, WallDataSource } from '../../common/data/data.mjs/wallData';
|
20
|
+
|
21
|
+
import type { SceneDataConstructorData } from '../../common/data/data.mjs/sceneData';
|
21
22
|
|
22
23
|
declare global {
|
23
24
|
/**
|
@@ -205,56 +206,56 @@ declare global {
|
|
205
206
|
_onCreateEmbeddedDocuments(
|
206
207
|
embeddedName: string,
|
207
208
|
documents: InstanceType<ConfiguredDocumentClass<typeof DrawingDocument>>[],
|
208
|
-
result: DeepPartial<
|
209
|
+
result: DeepPartial<DrawingDataSource>[],
|
209
210
|
options: DocumentModificationContext,
|
210
211
|
userId: string
|
211
212
|
): void;
|
212
213
|
_onCreateEmbeddedDocuments(
|
213
214
|
embeddedName: string,
|
214
215
|
documents: InstanceType<ConfiguredDocumentClass<typeof TokenDocument>>[],
|
215
|
-
result: DeepPartial<
|
216
|
+
result: DeepPartial<TokenDataSource>[],
|
216
217
|
options: DocumentModificationContext,
|
217
218
|
userId: string
|
218
219
|
): void;
|
219
220
|
_onCreateEmbeddedDocuments(
|
220
221
|
embeddedName: string,
|
221
222
|
documents: InstanceType<ConfiguredDocumentClass<typeof AmbientLightDocument>>[],
|
222
|
-
result: DeepPartial<
|
223
|
+
result: DeepPartial<AmbientLightDataSource>[],
|
223
224
|
options: DocumentModificationContext,
|
224
225
|
userId: string
|
225
226
|
): void;
|
226
227
|
_onCreateEmbeddedDocuments(
|
227
228
|
embeddedName: string,
|
228
229
|
documents: InstanceType<ConfiguredDocumentClass<typeof NoteDocument>>[],
|
229
|
-
result: DeepPartial<
|
230
|
+
result: DeepPartial<NoteDataSource>[],
|
230
231
|
options: DocumentModificationContext,
|
231
232
|
userId: string
|
232
233
|
): void;
|
233
234
|
_onCreateEmbeddedDocuments(
|
234
235
|
embeddedName: string,
|
235
236
|
documents: InstanceType<ConfiguredDocumentClass<typeof AmbientSoundDocument>>[],
|
236
|
-
result: DeepPartial<
|
237
|
+
result: DeepPartial<AmbientSoundDataSource>[],
|
237
238
|
options: DocumentModificationContext,
|
238
239
|
userId: string
|
239
240
|
): void;
|
240
241
|
_onCreateEmbeddedDocuments(
|
241
242
|
embeddedName: string,
|
242
243
|
documents: InstanceType<ConfiguredDocumentClass<typeof MeasuredTemplateDocument>>[],
|
243
|
-
result: DeepPartial<
|
244
|
+
result: DeepPartial<MeasuredTemplateDataSource>[],
|
244
245
|
options: DocumentModificationContext,
|
245
246
|
userId: string
|
246
247
|
): void;
|
247
248
|
_onCreateEmbeddedDocuments(
|
248
249
|
embeddedName: string,
|
249
250
|
documents: InstanceType<ConfiguredDocumentClass<typeof TileDocument>>[],
|
250
|
-
result: DeepPartial<
|
251
|
+
result: DeepPartial<TileDataSource>[],
|
251
252
|
options: DocumentModificationContext,
|
252
253
|
userId: string
|
253
254
|
): void;
|
254
255
|
_onCreateEmbeddedDocuments(
|
255
256
|
embeddedName: string,
|
256
257
|
documents: InstanceType<ConfiguredDocumentClass<typeof WallDocument>>[],
|
257
|
-
result: DeepPartial<
|
258
|
+
result: DeepPartial<WallDataSource>[],
|
258
259
|
options: DocumentModificationContext,
|
259
260
|
userId: string
|
260
261
|
): void;
|
@@ -262,49 +263,49 @@ declare global {
|
|
262
263
|
/** @override */
|
263
264
|
_preUpdateEmbeddedDocuments(
|
264
265
|
embeddedName: string,
|
265
|
-
result: DeepPartial<
|
266
|
+
result: DeepPartial<DrawingDataSource>[],
|
266
267
|
options: DocumentModificationContext,
|
267
268
|
userId: string
|
268
269
|
): void;
|
269
270
|
_preUpdateEmbeddedDocuments(
|
270
271
|
embeddedName: string,
|
271
|
-
result: DeepPartial<
|
272
|
+
result: DeepPartial<TokenDataSource>[],
|
272
273
|
options: DocumentModificationContext,
|
273
274
|
userId: string
|
274
275
|
): void;
|
275
276
|
_preUpdateEmbeddedDocuments(
|
276
277
|
embeddedName: string,
|
277
|
-
result: DeepPartial<
|
278
|
+
result: DeepPartial<AmbientLightDataSource>[],
|
278
279
|
options: DocumentModificationContext,
|
279
280
|
userId: string
|
280
281
|
): void;
|
281
282
|
_preUpdateEmbeddedDocuments(
|
282
283
|
embeddedName: string,
|
283
|
-
result: DeepPartial<
|
284
|
+
result: DeepPartial<NoteDataSource>[],
|
284
285
|
options: DocumentModificationContext,
|
285
286
|
userId: string
|
286
287
|
): void;
|
287
288
|
_preUpdateEmbeddedDocuments(
|
288
289
|
embeddedName: string,
|
289
|
-
result: DeepPartial<
|
290
|
+
result: DeepPartial<AmbientSoundDataSource>[],
|
290
291
|
options: DocumentModificationContext,
|
291
292
|
userId: string
|
292
293
|
): void;
|
293
294
|
_preUpdateEmbeddedDocuments(
|
294
295
|
embeddedName: string,
|
295
|
-
result: DeepPartial<
|
296
|
+
result: DeepPartial<MeasuredTemplateDataSource>[],
|
296
297
|
options: DocumentModificationContext,
|
297
298
|
userId: string
|
298
299
|
): void;
|
299
300
|
_preUpdateEmbeddedDocuments(
|
300
301
|
embeddedName: string,
|
301
|
-
result: DeepPartial<
|
302
|
+
result: DeepPartial<TileDataSource>[],
|
302
303
|
options: DocumentModificationContext,
|
303
304
|
userId: string
|
304
305
|
): void;
|
305
306
|
_preUpdateEmbeddedDocuments(
|
306
307
|
embeddedName: string,
|
307
|
-
result: DeepPartial<
|
308
|
+
result: DeepPartial<WallDataSource>[],
|
308
309
|
options: DocumentModificationContext,
|
309
310
|
userId: string
|
310
311
|
): void;
|
@@ -313,56 +314,56 @@ declare global {
|
|
313
314
|
_onUpdateEmbeddedDocuments(
|
314
315
|
embeddedName: string,
|
315
316
|
documents: InstanceType<ConfiguredDocumentClass<typeof DrawingDocument>>[],
|
316
|
-
result: DeepPartial<
|
317
|
+
result: DeepPartial<DrawingDataSource>[],
|
317
318
|
options: DocumentModificationContext,
|
318
319
|
userId: string
|
319
320
|
): void;
|
320
321
|
_onUpdateEmbeddedDocuments(
|
321
322
|
embeddedName: string,
|
322
323
|
documents: InstanceType<ConfiguredDocumentClass<typeof TokenDocument>>[],
|
323
|
-
result: DeepPartial<
|
324
|
+
result: DeepPartial<TokenDataSource>[],
|
324
325
|
options: DocumentModificationContext,
|
325
326
|
userId: string
|
326
327
|
): void;
|
327
328
|
_onUpdateEmbeddedDocuments(
|
328
329
|
embeddedName: string,
|
329
330
|
documents: InstanceType<ConfiguredDocumentClass<typeof AmbientLightDocument>>[],
|
330
|
-
result: DeepPartial<
|
331
|
+
result: DeepPartial<AmbientLightDataSource>[],
|
331
332
|
options: DocumentModificationContext,
|
332
333
|
userId: string
|
333
334
|
): void;
|
334
335
|
_onUpdateEmbeddedDocuments(
|
335
336
|
embeddedName: string,
|
336
337
|
documents: InstanceType<ConfiguredDocumentClass<typeof NoteDocument>>[],
|
337
|
-
result: DeepPartial<
|
338
|
+
result: DeepPartial<NoteDataSource>[],
|
338
339
|
options: DocumentModificationContext,
|
339
340
|
userId: string
|
340
341
|
): void;
|
341
342
|
_onUpdateEmbeddedDocuments(
|
342
343
|
embeddedName: string,
|
343
344
|
documents: InstanceType<ConfiguredDocumentClass<typeof AmbientSoundDocument>>[],
|
344
|
-
result: DeepPartial<
|
345
|
+
result: DeepPartial<AmbientSoundDataSource>[],
|
345
346
|
options: DocumentModificationContext,
|
346
347
|
userId: string
|
347
348
|
): void;
|
348
349
|
_onUpdateEmbeddedDocuments(
|
349
350
|
embeddedName: string,
|
350
351
|
documents: InstanceType<ConfiguredDocumentClass<typeof MeasuredTemplateDocument>>[],
|
351
|
-
result: DeepPartial<
|
352
|
+
result: DeepPartial<MeasuredTemplateDataSource>[],
|
352
353
|
options: DocumentModificationContext,
|
353
354
|
userId: string
|
354
355
|
): void;
|
355
356
|
_onUpdateEmbeddedDocuments(
|
356
357
|
embeddedName: string,
|
357
358
|
documents: InstanceType<ConfiguredDocumentClass<typeof TileDocument>>[],
|
358
|
-
result: DeepPartial<
|
359
|
+
result: DeepPartial<TileDataSource>[],
|
359
360
|
options: DocumentModificationContext,
|
360
361
|
userId: string
|
361
362
|
): void;
|
362
363
|
_onUpdateEmbeddedDocuments(
|
363
364
|
embeddedName: string,
|
364
365
|
documents: InstanceType<ConfiguredDocumentClass<typeof WallDocument>>[],
|
365
|
-
result: DeepPartial<
|
366
|
+
result: DeepPartial<WallDataSource>[],
|
366
367
|
options: DocumentModificationContext,
|
367
368
|
userId: string
|
368
369
|
): void;
|