@league-of-foundry-developers/foundry-vtt-types 0.8.9-5 → 0.8.9-9

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.
Files changed (64) hide show
  1. package/README.md +41 -13
  2. package/index-lenient.d.ts +10 -0
  3. package/package.json +10 -1
  4. package/src/foundry/common/abstract/backend.mjs.d.ts +14 -15
  5. package/src/foundry/common/abstract/document.mjs.d.ts +6 -2
  6. package/src/foundry/common/data/data.mjs/drawingData.d.ts +8 -3
  7. package/src/foundry/common/types.mjs.d.ts +5 -0
  8. package/src/foundry/foundry.js/application.d.ts +2 -5
  9. package/src/foundry/foundry.js/applications/cameraViews.d.ts +36 -31
  10. package/src/foundry/foundry.js/applications/compendium.d.ts +5 -2
  11. package/src/foundry/foundry.js/applications/filePicker.d.ts +115 -115
  12. package/src/foundry/foundry.js/applications/formApplication.d.ts +1 -1
  13. package/src/foundry/foundry.js/applications/formApplications/combatTrackerConfig.d.ts +20 -27
  14. package/src/foundry/foundry.js/applications/formApplications/defaultTokenConfig.d.ts +66 -0
  15. package/src/foundry/foundry.js/applications/formApplications/documentSheets/activeEffectConfig.d.ts +2 -2
  16. package/src/foundry/foundry.js/applications/formApplications/documentSheets/actorSheet.d.ts +5 -2
  17. package/src/foundry/foundry.js/applications/formApplications/{folderConfig.d.ts → documentSheets/folderConfig.d.ts} +2 -2
  18. package/src/foundry/foundry.js/applications/formApplications/documentSheets/index.d.ts +3 -0
  19. package/src/foundry/foundry.js/applications/formApplications/documentSheets/measuredTemplateConfig.d.ts +60 -0
  20. package/src/foundry/foundry.js/applications/formApplications/documentSheets/noteConfig.d.ts +72 -0
  21. package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +190 -148
  22. package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +133 -110
  23. package/src/foundry/foundry.js/applications/formApplications/drawingConfig.d.ts +93 -95
  24. package/src/foundry/foundry.js/applications/formApplications/entitySheetConfig.d.ts +163 -147
  25. package/src/foundry/foundry.js/applications/formApplications/index.d.ts +1 -3
  26. package/src/foundry/foundry.js/applications/formApplications/moduleManagement.d.ts +41 -23
  27. package/src/foundry/foundry.js/applications/formApplications/settingsConfig.d.ts +95 -86
  28. package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +146 -158
  29. package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +60 -70
  30. package/src/foundry/foundry.js/applications/formApplications/worldConfig.d.ts +25 -17
  31. package/src/foundry/foundry.js/applications/hotbar.d.ts +5 -4
  32. package/src/foundry/foundry.js/applications/sceneControls.d.ts +13 -3
  33. package/src/foundry/foundry.js/applications/sceneNavigation.d.ts +90 -71
  34. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/actorDirectory.d.ts +13 -56
  35. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/itemDirectory.d.ts +7 -30
  36. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/journalDirectory.d.ts +14 -34
  37. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/macroDirectory.d.ts +6 -52
  38. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/sceneDirectory.d.ts +6 -23
  39. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +2 -4
  40. package/src/foundry/foundry.js/cameraPopoutAppWrapper.d.ts +12 -7
  41. package/src/foundry/foundry.js/canvas.d.ts +2 -1
  42. package/src/foundry/foundry.js/clientDatabaseBackend.d.ts +210 -0
  43. package/src/foundry/foundry.js/clientDocuments/canvasDocuments/tokenDocument.d.ts +1 -1
  44. package/src/foundry/foundry.js/clientDocuments/index.d.ts +1 -0
  45. package/src/foundry/foundry.js/clientDocuments/prototypeToken.d.ts +15 -0
  46. package/src/foundry/foundry.js/clientSettings.d.ts +14 -1
  47. package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +44 -11
  48. package/src/foundry/foundry.js/config.d.ts +84 -70
  49. package/src/foundry/foundry.js/dragDrop.d.ts +17 -14
  50. package/src/foundry/foundry.js/globalVariables.d.ts +7 -4
  51. package/src/foundry/foundry.js/mouseInteractionManager.d.ts +78 -34
  52. package/src/foundry/foundry.js/pixi/containers/canvasLayer.d.ts +2 -1
  53. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayer.d.ts +10 -19
  54. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/mapLayers/backgroundLayer.d.ts +6 -2
  55. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/mapLayers/foregroundLayer.d.ts +2 -2
  56. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/wallsLayer.d.ts +1 -1
  57. package/src/foundry/foundry.js/pixi/containers/placeableObject.d.ts +4 -1
  58. package/src/foundry/foundry.js/pixi/containers/placeableObjects/wall.d.ts +1 -1
  59. package/src/foundry/foundry.js/pixi/containers/ruler.d.ts +11 -7
  60. package/src/foundry/foundry.js/pointSource.d.ts +173 -85
  61. package/src/foundry/foundry.js/textEditor.d.ts +39 -8
  62. package/src/foundry/index.d.ts +1 -0
  63. package/src/foundry/foundry.js/applications/formApplications/measuredTemplateConfig.d.ts +0 -61
  64. package/src/foundry/foundry.js/applications/formApplications/noteConfig.d.ts +0 -77
@@ -2,10 +2,13 @@ import './activeEffectConfig';
2
2
  import './actorSheet';
3
3
  import './ambientSoundConfig';
4
4
  import './combatantConfig';
5
+ import './folderConfig';
5
6
  import './itemSheet';
6
7
  import './journalSheet';
7
8
  import './lightConfig';
8
9
  import './macroConfig';
10
+ import './measuredTemplateConfig';
11
+ import './noteConfig';
9
12
  import './permissionControl';
10
13
  import './playlistConfig';
11
14
  import './playlistSoundConfig';
@@ -0,0 +1,60 @@
1
+ import type { ConfiguredDocumentClassForName } from '../../../../../types/helperTypes';
2
+
3
+ declare global {
4
+ /**
5
+ * The Application responsible for configuring a single MeasuredTemplate document within a parent Scene.
6
+ * @see {@link MeasuredTemplate}
7
+ * @typeParam Options - the type of the options object
8
+ * @typeParam Data - The data structure used to render the handlebars template.
9
+ */
10
+ class MeasuredTemplateConfig<
11
+ Options extends DocumentSheet.Options = DocumentSheet.Options,
12
+ Data extends object = MeasuredTemplateConfig.Data
13
+ > extends DocumentSheet<Options, Data, InstanceType<ConfiguredDocumentClassForName<'MeasuredTemplate'>>> {
14
+ /**
15
+ * @override
16
+ * @defaultValue
17
+ * ```typescript
18
+ * foundry.utils.mergeObject(super.defaultOptions, {
19
+ * id: "template-config",
20
+ * classes: ["sheet", "template-sheet"],
21
+ * title: "Measurement Template Configuration",
22
+ * template: "templates/scene/template-config.html",
23
+ * width: 400,
24
+ * })
25
+ * ```
26
+ */
27
+ static get defaultOptions(): DocumentSheet.Options;
28
+
29
+ /** @override */
30
+ getData(): Data | Promise<Data>;
31
+
32
+ /** @override */
33
+ protected _updateObject(
34
+ event: Event,
35
+ formData: MeasuredTemplateConfig.FormData
36
+ ): Promise<InstanceType<ConfiguredDocumentClassForName<'MeasuredTemplate'>> | undefined>;
37
+ }
38
+
39
+ namespace MeasuredTemplateConfig {
40
+ interface Data<Options extends DocumentSheet.Options = DocumentSheet.Options>
41
+ extends DocumentSheet.Data<InstanceType<ConfiguredDocumentClassForName<'MeasuredTemplate'>>, Options> {
42
+ templateTypes: typeof CONFIG.MeasuredTemplate.types;
43
+ gridUnits: string;
44
+ submitText: string;
45
+ }
46
+
47
+ type FormData = {
48
+ angle: number | null;
49
+ borderColor: string;
50
+ direction: number | null;
51
+ distance: number | null;
52
+ fillColor: string;
53
+ t: ValueOf<foundry.CONST.MeasuredTemplateTypes>;
54
+ texture: string;
55
+ width: number | null;
56
+ x: number | null;
57
+ y: number | null;
58
+ };
59
+ }
60
+ }
@@ -0,0 +1,72 @@
1
+ import type { ConfiguredDocumentClassForName } from '../../../../../types/helperTypes';
2
+
3
+ declare global {
4
+ /**
5
+ * The Application responsible for configuring a single Note document within a parent Scene.
6
+ * @typeParam Options - the type of the options object
7
+ * @typeParam Data - The data structure used to render the handlebars template.
8
+ */
9
+ class NoteConfig<
10
+ Options extends DocumentSheet.Options = DocumentSheet.Options,
11
+ Data extends object = NoteConfig.Data<Options>
12
+ > extends DocumentSheet<Options, Data, InstanceType<ConfiguredDocumentClassForName<'Note'>>> {
13
+ /**
14
+ * @override
15
+ * @defaultValue
16
+ * ```typescript
17
+ * foundry.utils.mergeObject(super.defaultOptions, {
18
+ * title: game.i18n.localize("NOTE.ConfigTitle"),
19
+ * template: "templates/scene/note-config.html",
20
+ * width: 400,
21
+ * })
22
+ * ```
23
+ */
24
+ static get defaultOptions(): DocumentSheet.Options;
25
+
26
+ /**
27
+ * @param options - (unused)
28
+ * @override
29
+ */
30
+ getData(options?: Partial<Options>): Data | Promise<Data>;
31
+
32
+ /**
33
+ * @param event - (unused)
34
+ * @override
35
+ */
36
+ protected _updateObject(
37
+ event: Event,
38
+ formData: NoteConfig.FormData
39
+ ): Promise<ConfiguredDocumentClassForName<'Note'> | undefined>;
40
+
41
+ /**
42
+ * @override
43
+ */
44
+ close(options?: Application.CloseOptions): Promise<void>;
45
+ }
46
+
47
+ namespace NoteConfig {
48
+ interface Data<Options extends DocumentSheet.Options>
49
+ extends DocumentSheet.Data<InstanceType<ConfiguredDocumentClassForName<'Note'>>, Options> {
50
+ entry: ConfiguredDocumentClassForName<'JournalEntry'> | {};
51
+ entries: Journal['contents'];
52
+ icons: CONFIG['JournalEntry']['noteIcons'];
53
+ fontFamilies: Record<string, string>;
54
+ textAnchors: Record<foundry.CONST.TextAnchorPoint, string>;
55
+ submitText: string;
56
+ }
57
+
58
+ interface FormData {
59
+ entryId: string;
60
+ fontFamily: string;
61
+ fontSize: number | null;
62
+ icon: string;
63
+ iconSize: number | null;
64
+ iconTint: string;
65
+ text: string;
66
+ textAnchor: foundry.CONST.TextAnchorPoint;
67
+ textColor: string;
68
+ x: number | null;
69
+ y: number | null;
70
+ }
71
+ }
72
+ }
@@ -1,152 +1,194 @@
1
- // TODO: Remove when updating this class!!!
2
- // eslint-disable-next-line
3
- // @ts-nocheck
4
-
5
- /**
6
- * The RollTable configuration sheet
7
- * @typeParam P - the type of the options object
8
- */
9
- declare class RollTableConfig<P extends DocumentSheet.Options = DocumentSheet.Options> extends DocumentSheet<
10
- P,
11
- RollTableConfig.Data,
12
- RollTable
13
- > {
14
- /**
15
- * @param table - The rollable table entity being configured
16
- * @param options - Additional application rendering options
17
- */
18
- constructor(table: RollTable, options?: Partial<P>);
19
-
20
- /**
21
- * @defaultValue
22
- * ```typescript
23
- * mergeObject(super.defaultOptions, {
24
- * classes: ["sheet", "roll-table-config"],
25
- * template: "templates/sheets/roll-table-config.html",
26
- * width: 720,
27
- * height: "auto",
28
- * closeOnSubmit: false,
29
- * viewPermission: ENTITY_PERMISSIONS.OBSERVER,
30
- * scrollY: ["ol.table-results"],
31
- * dragDrop: [{dragSelector: null, dropSelector: null}]
32
- * })
33
- * ```
34
- */
35
- static get defaultOptions(): typeof DocumentSheet['defaultOptions'];
36
-
37
- /**
38
- * @override
39
- */
40
- get title(): string;
41
-
42
- /**
43
- * @param options - (unused)
44
- * @override
45
- */
46
- getData(options?: Partial<P>): RollTableConfig.Data;
47
-
48
- /**
49
- * @override
50
- */
51
- activateListeners(html: JQuery): void;
52
-
53
- /**
54
- * Handle creating a TableResult in the RollTable entity
55
- * @param event - The originating mouse event
56
- * @param resultData - An optional object of result data to use
57
- */
58
- protected _onCreateResult(event: JQuery.ClickEvent | DragEvent, resultData?: object): Promise<RollTable.Result>;
59
-
60
- /**
61
- * Submit the entire form when a table result type is changed, in case there are other active changes
62
- */
63
- protected _onChangeResultType(event: JQuery.ClickEvent): ReturnType<RollTableConfig['_onSubmit']>;
64
-
65
- /**
66
- * Handle deleting a TableResult from the RollTable entity
67
- */
68
- protected _onDeleteResult(event: JQuery.ClickEvent): Promise<RollTable.Result>;
69
-
70
- /**
71
- * @override
72
- */
73
- protected _onDrop(event: DragEvent): ReturnType<RollTableConfig['_onCreateResult']>;
74
-
75
- /**
76
- * Handle changing the actor profile image by opening a FilePicker
77
- */
78
- protected _onEditImage(event: JQuery.ClickEvent): ReturnType<FilePicker['browse']>;
79
-
80
- /**
81
- * Handle a button click to re-normalize dice result ranges across all RollTable results
82
- */
83
- protected _onNormalizeResults(event: JQuery.ClickEvent): Promise<RollTable>;
84
-
85
- /**
86
- * Handle toggling the drawn status of the result in the table
87
- */
88
- protected _onLockResult(event: JQuery.ClickEvent): Promise<RollTable.Result>;
89
-
90
- /**
91
- * Reset the Table to it's original composition with all options unlocked
92
- */
93
- protected _onResetTable(event: JQuery.ClickEvent): Promise<RollTable.Result>;
94
-
95
- /**
96
- * Handle drawing a result from the RollTable
97
- */
98
- protected _onRollTable(event: JQuery.ClickEvent): Promise<void>;
99
-
100
- /**
101
- * Configure the update object workflow for the Roll Table configuration sheet
102
- * Additional logic is needed here to reconstruct the results array from the editable fields on the sheet
103
- * @param event - The form submission event
104
- * @param formData - The validated FormData translated into an Object for submission
105
- */
106
- protected _updateObject(event: Event, formData: RollTableConfig.FormData): Promise<RollTable>;
107
-
108
- /**
109
- * Display a roulette style animation when a Roll Table result is drawn from the sheet
110
- * @param results - An Array of drawn table results to highlight
111
- */
112
- protected _animateRoll(results: RollTable.Result[]): Promise<void>;
113
-
114
- /**
115
- * Animate a "roulette" through the table until arriving at the final loop and a drawn result
116
- */
117
- protected _animateRoulette(
118
- ol: HTMLOListElement,
119
- drawnIds: string[],
120
- nLoops: number,
121
- animTime: number,
122
- animOffset: number
123
- ): Promise<void>;
124
-
125
- /**
126
- * Display a flashing animation on the selected result to emphasize the draw
127
- * @param item - The HTML <li> item of the winning result
128
- */
129
- protected _flashResult(item: HTMLElement): Promise<void>;
130
- }
131
-
132
- declare namespace RollTableConfig {
133
- interface Data extends DocumentSheet.Data<RollTable> {
134
- results: RollTable.Result;
135
- resultTypes: {
136
- [Key in keyof typeof foundry.CONST['TABLE_RESULT_TYPES'] as typeof foundry.CONST['TABLE_RESULT_TYPES'][Key]]: Key;
137
- };
138
- entityTypes: typeof foundry.CONST['COMPENDIUM_ENTITY_TYPES'];
139
- compendiumPacks: string[];
1
+ import type {
2
+ ConfiguredDocumentClassForName,
3
+ ConstructorDataType,
4
+ ToObjectFalseType
5
+ } from '../../../../../types/helperTypes';
6
+
7
+ declare global {
8
+ /**
9
+ * The Application responsible for displaying and editing a single RollTable document.
10
+ * @typeParam Options - the type of the options object
11
+ * @typeParam Data - The data structure used to render the handlebars template.
12
+ */
13
+ class RollTableConfig<
14
+ Options extends DocumentSheet.Options = DocumentSheet.Options,
15
+ Data extends object = ActorSheet.Data<Options>
16
+ > extends DocumentSheet<Options, Data, InstanceType<ConfiguredDocumentClassForName<'RollTable'>>> {
17
+ /**
18
+ * @defaultValue
19
+ * ```typescript
20
+ * foundry.utils.mergeObject(super.defaultOptions, {
21
+ * classes: ["sheet", "roll-table-config"],
22
+ * template: "templates/sheets/roll-table-config.html",
23
+ * width: 720,
24
+ * height: "auto",
25
+ * closeOnSubmit: false,
26
+ * viewPermission: CONST.ENTITY_PERMISSIONS.OBSERVER,
27
+ * scrollY: ["ol.table-results"],
28
+ * dragDrop: [{ dragSelector: null, dropSelector: null }],
29
+ * })
30
+ * ```
31
+ */
32
+ static get defaultOptions(): DocumentSheet.Options;
33
+
34
+ /**
35
+ * @override
36
+ */
37
+ get title(): string;
38
+
39
+ /**
40
+ * @param options - (unused)
41
+ * @override
42
+ */
43
+ getData(options?: Partial<Options>): Data | Promise<Data>;
44
+
45
+ /**
46
+ * @override
47
+ */
48
+ activateListeners(html: JQuery): void;
49
+
50
+ /**
51
+ * Handle creating a TableResult in the RollTable entity
52
+ * @param event - The originating mouse event
53
+ * @param resultData - An optional object of result data to use
54
+ * @internal
55
+ */
56
+ protected _onCreateResult(
57
+ event: JQuery.ClickEvent | DragEvent,
58
+ resultData?: ConstructorDataType<foundry.data.TableResultData>
59
+ ): Promise<ConfiguredDocumentClassForName<'TableResult'>[]>;
60
+
61
+ /**
62
+ * Submit the entire form when a table result type is changed, in case there are other active changes
63
+ * @internal
64
+ */
65
+ protected _onChangeResultType(event: JQuery.ChangeEvent): void;
66
+
67
+ /**
68
+ * Handle deleting a TableResult from the RollTable entity
69
+ * @param event - The originating click event
70
+ * @returns The deleted TableResult document
71
+ * @internal
72
+ */
73
+ protected _onDeleteResult(
74
+ event: JQuery.ClickEvent
75
+ ): Promise<InstanceType<ConfiguredDocumentClassForName<'TableResult'>> | undefined>;
76
+
77
+ /**
78
+ * @override
79
+ * @internal
80
+ */
81
+ protected _onDrop(event: DragEvent): void;
82
+
83
+ /**
84
+ * Handle changing the actor profile image by opening a FilePicker
85
+ * @internal
86
+ */
87
+ protected _onEditImage(event: JQuery.ClickEvent): void;
88
+
89
+ /**
90
+ * Handle a button click to re-normalize dice result ranges across all RollTable results
91
+ * @internal
92
+ */
93
+ protected _onNormalizeResults(event: JQuery.ClickEvent): void;
94
+
95
+ /**
96
+ * Handle toggling the drawn status of the result in the table
97
+ * @internal
98
+ */
99
+ protected _onLockResult(event: JQuery.ClickEvent): void;
100
+
101
+ /**
102
+ * Reset the Table to it's original composition with all options unlocked
103
+ * @internal
104
+ */
105
+ protected _onResetTable(event: JQuery.ClickEvent): void;
106
+
107
+ /**
108
+ * Handle drawing a result from the RollTable
109
+ * @internal
110
+ */
111
+ protected _onRollTable(event: JQuery.ClickEvent): void;
112
+
113
+ /**
114
+ * Configure the update object workflow for the Roll Table configuration sheet
115
+ * Additional logic is needed here to reconstruct the results array from the editable fields on the sheet
116
+ * @param event - The form submission event
117
+ * @param formData - The validated FormData translated into an Object for submission
118
+ * @internal
119
+ */
120
+ protected _updateObject(
121
+ event: Event,
122
+ formData: RollTableConfig.FormData
123
+ ): Promise<InstanceType<ConfiguredDocumentClassForName<'RollTable'>> | undefined>;
124
+
125
+ /**
126
+ * Display a roulette style animation when a Roll Table result is drawn from the sheet
127
+ * @param results - An Array of drawn table results to highlight
128
+ * @returns A Promise which resolves once the animation is complete
129
+ */
130
+ protected _animateRoll(results: InstanceType<ConfiguredDocumentClassForName<'TableResult'>>[]): Promise<void[]>;
131
+
132
+ /**
133
+ * Animate a "roulette" through the table until arriving at the final loop and a drawn result
134
+ */
135
+ protected _animateRoulette(
136
+ ol: HTMLOListElement,
137
+ drawnIds: Set<string>,
138
+ nLoops: number,
139
+ animTime: number,
140
+ animOffset: number
141
+ ): Promise<void>;
142
+
143
+ /**
144
+ * Display a flashing animation on the selected result to emphasize the draw
145
+ * @param item - The HTML \<li\> item of the winning result
146
+ * @returns A Promise that resolves once the animation is complete
147
+ */
148
+ protected _flashResult(item: HTMLElement): Promise<void>;
140
149
  }
141
150
 
142
- interface FormData
143
- extends Pick<RollTable.Data, 'description' | 'displayRoll' | 'formula' | 'img' | 'name' | 'replacement'> {
144
- [index: number]: FormDataResult;
145
- }
146
-
147
- interface FormDataResult
148
- extends Pick<RollTable.Result, '_id' | 'drawn' | 'img' | 'resultId' | 'text' | 'type' | 'weight'> {
149
- rangeH: RollTable.Result['range'][1];
150
- rangeL: RollTable.Result['range'][0];
151
+ namespace RollTableConfig {
152
+ interface Data extends DocumentSheet.Data<RollTable> {
153
+ results: ToObjectFalseType<foundry.data.TableResultData> & {
154
+ isText: boolean;
155
+ isEntity: boolean;
156
+ isCompendium: boolean;
157
+ img: string;
158
+ text: string;
159
+ };
160
+ resultTypes: {
161
+ [Key in keyof typeof foundry.CONST.TABLE_RESULT_TYPES as typeof foundry.CONST.TABLE_RESULT_TYPES[Key]]: Titlecase<Key>;
162
+ };
163
+ entityTypes: typeof foundry.CONST.COMPENDIUM_ENTITY_TYPES;
164
+ compendiumPacks: string[];
165
+ }
166
+
167
+ type FormData = {
168
+ description: string;
169
+ displayRoll: boolean;
170
+ formula: string;
171
+ img: string;
172
+ name: string;
173
+ replacement: boolean;
174
+ } & FormDataResults;
175
+
176
+ type FormDataResults = {
177
+ [Key in number as `results.${number}._id`]: string;
178
+ } & {
179
+ [Key in number as `results.${number}.drawn`]: boolean;
180
+ } & {
181
+ [Key in number as `results.${number}.img`]: string;
182
+ } & {
183
+ [Key in number as `results.${number}.rangeH`]: number;
184
+ } & {
185
+ [Key in number as `results.${number}.rangeL`]: number;
186
+ } & {
187
+ [Key in number as `results.${number}.text`]: string;
188
+ } & {
189
+ [Key in number as `results.${number}.type`]: foundry.CONST.TableResultType;
190
+ } & {
191
+ [Key in number as `results.${number}.weight`]: string;
192
+ };
151
193
  }
152
194
  }