@league-of-foundry-developers/foundry-vtt-types 0.8.9-7 → 0.8.9-8
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/index-lenient.d.ts +10 -0
- package/package.json +10 -1
- package/src/foundry/common/abstract/backend.mjs.d.ts +14 -15
- package/src/foundry/common/abstract/document.mjs.d.ts +6 -2
- package/src/foundry/common/types.mjs.d.ts +5 -0
- package/src/foundry/foundry.js/application.d.ts +2 -5
- package/src/foundry/foundry.js/applications/cameraViews.d.ts +36 -31
- package/src/foundry/foundry.js/applications/compendium.d.ts +5 -2
- package/src/foundry/foundry.js/applications/filePicker.d.ts +115 -115
- package/src/foundry/foundry.js/applications/formApplication.d.ts +1 -1
- package/src/foundry/foundry.js/applications/formApplications/combatTrackerConfig.d.ts +20 -27
- package/src/foundry/foundry.js/applications/formApplications/defaultTokenConfig.d.ts +66 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/activeEffectConfig.d.ts +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/actorSheet.d.ts +5 -2
- package/src/foundry/foundry.js/applications/formApplications/{folderConfig.d.ts → documentSheets/folderConfig.d.ts} +2 -2
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/index.d.ts +3 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/measuredTemplateConfig.d.ts +60 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/noteConfig.d.ts +72 -0
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +190 -148
- package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +133 -110
- package/src/foundry/foundry.js/applications/formApplications/drawingConfig.d.ts +93 -95
- package/src/foundry/foundry.js/applications/formApplications/entitySheetConfig.d.ts +163 -147
- package/src/foundry/foundry.js/applications/formApplications/index.d.ts +1 -3
- package/src/foundry/foundry.js/applications/formApplications/moduleManagement.d.ts +41 -23
- package/src/foundry/foundry.js/applications/formApplications/settingsConfig.d.ts +95 -86
- package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +146 -158
- package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +60 -70
- package/src/foundry/foundry.js/applications/formApplications/worldConfig.d.ts +25 -17
- package/src/foundry/foundry.js/applications/hotbar.d.ts +5 -4
- package/src/foundry/foundry.js/applications/sceneNavigation.d.ts +90 -71
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/actorDirectory.d.ts +13 -56
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/itemDirectory.d.ts +7 -30
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/journalDirectory.d.ts +14 -34
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/macroDirectory.d.ts +6 -52
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/sceneDirectory.d.ts +6 -23
- package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +2 -4
- package/src/foundry/foundry.js/cameraPopoutAppWrapper.d.ts +12 -7
- package/src/foundry/foundry.js/canvas.d.ts +2 -1
- package/src/foundry/foundry.js/clientDatabaseBackend.d.ts +210 -0
- package/src/foundry/foundry.js/clientDocuments/canvasDocuments/tokenDocument.d.ts +1 -1
- package/src/foundry/foundry.js/clientDocuments/index.d.ts +1 -0
- package/src/foundry/foundry.js/clientDocuments/prototypeToken.d.ts +15 -0
- package/src/foundry/foundry.js/clientSettings.d.ts +14 -1
- package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +44 -11
- package/src/foundry/foundry.js/config.d.ts +12 -4
- package/src/foundry/foundry.js/dragDrop.d.ts +17 -14
- package/src/foundry/foundry.js/globalVariables.d.ts +7 -4
- package/src/foundry/foundry.js/mouseInteractionManager.d.ts +78 -34
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayer.d.ts +5 -17
- package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/wallsLayer.d.ts +1 -1
- package/src/foundry/foundry.js/pixi/containers/placeableObject.d.ts +4 -1
- package/src/foundry/foundry.js/pixi/containers/placeableObjects/wall.d.ts +1 -1
- package/src/foundry/foundry.js/pointSource.d.ts +173 -85
- package/src/foundry/foundry.js/textEditor.d.ts +39 -8
- package/src/foundry/index.d.ts +1 -0
- package/src/foundry/foundry.js/applications/formApplications/measuredTemplateConfig.d.ts +0 -61
- 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
|
+
}
|
package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts
CHANGED
@@ -1,152 +1,194 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
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
|
-
|
143
|
-
extends
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
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
|
}
|