@league-of-foundry-developers/foundry-vtt-types 9.255.1 → 9.268.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.
Files changed (117) hide show
  1. package/README.md +5 -4
  2. package/package.json +3 -2
  3. package/src/foundry/common/data/data.mjs/index.d.ts +0 -1
  4. package/src/foundry/common/types.mjs.d.ts +4 -4
  5. package/src/foundry/common/utils/helpers.mjs.d.ts +1 -0
  6. package/src/foundry/foundry.js/application.d.ts +0 -1
  7. package/src/foundry/foundry.js/applications/basePlaceableHUDs/tokenHUD.d.ts +7 -3
  8. package/src/foundry/foundry.js/applications/cameraViews.d.ts +3 -3
  9. package/src/foundry/foundry.js/applications/chatPopout.d.ts +1 -1
  10. package/src/foundry/foundry.js/applications/compendium.d.ts +20 -11
  11. package/src/foundry/foundry.js/applications/controlsReference.d.ts +17 -2
  12. package/src/foundry/foundry.js/applications/dialog.d.ts +14 -29
  13. package/src/foundry/foundry.js/applications/filePicker.d.ts +67 -75
  14. package/src/foundry/foundry.js/applications/formApplication.d.ts +7 -2
  15. package/src/foundry/foundry.js/applications/formApplications/avConfig.d.ts +19 -58
  16. package/src/foundry/foundry.js/applications/formApplications/combatTrackerConfig.d.ts +2 -4
  17. package/src/foundry/foundry.js/applications/formApplications/{entitySheetConfig.d.ts → documentSheetConfig.d.ts} +36 -19
  18. package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientLightConfig.d.ts +1 -4
  19. package/src/foundry/foundry.js/applications/formApplications/documentSheets/ambientSoundConfig.d.ts +2 -4
  20. package/src/foundry/foundry.js/applications/formApplications/documentSheets/cardConfig.d.ts +51 -0
  21. package/src/foundry/foundry.js/applications/formApplications/documentSheets/cardsConfig.d.ts +88 -0
  22. package/src/foundry/foundry.js/applications/formApplications/documentSheets/cardsConfigs/cardsHand.d.ts +20 -0
  23. package/src/foundry/foundry.js/applications/formApplications/documentSheets/cardsConfigs/cardsPile.d.ts +20 -0
  24. package/src/foundry/foundry.js/applications/formApplications/documentSheets/cardsConfigs/index.d.ts +2 -0
  25. package/src/foundry/foundry.js/applications/formApplications/documentSheets/combatantConfig.d.ts +2 -4
  26. package/src/foundry/foundry.js/applications/formApplications/documentSheets/folderConfig.d.ts +17 -11
  27. package/src/foundry/foundry.js/applications/formApplications/documentSheets/index.d.ts +3 -0
  28. package/src/foundry/foundry.js/applications/formApplications/documentSheets/itemSheet.d.ts +3 -9
  29. package/src/foundry/foundry.js/applications/formApplications/documentSheets/journalSheet.d.ts +10 -12
  30. package/src/foundry/foundry.js/applications/formApplications/documentSheets/macroConfig.d.ts +4 -5
  31. package/src/foundry/foundry.js/applications/formApplications/documentSheets/measuredTemplateConfig.d.ts +2 -6
  32. package/src/foundry/foundry.js/applications/formApplications/documentSheets/noteConfig.d.ts +1 -4
  33. package/src/foundry/foundry.js/applications/formApplications/documentSheets/permissionControl.d.ts +8 -12
  34. package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistConfig.d.ts +2 -1
  35. package/src/foundry/foundry.js/applications/formApplications/documentSheets/playlistSoundConfig.d.ts +1 -4
  36. package/src/foundry/foundry.js/applications/formApplications/documentSheets/rollTableConfig.d.ts +10 -11
  37. package/src/foundry/foundry.js/applications/formApplications/documentSheets/sceneConfig.d.ts +28 -15
  38. package/src/foundry/foundry.js/applications/formApplications/documentSheets/tileConfig.d.ts +3 -6
  39. package/src/foundry/foundry.js/applications/formApplications/documentSheets/userConfig.d.ts +1 -4
  40. package/src/foundry/foundry.js/applications/formApplications/drawingConfig.d.ts +17 -21
  41. package/src/foundry/foundry.js/applications/formApplications/gridConfig.d.ts +3 -3
  42. package/src/foundry/foundry.js/applications/formApplications/imagePopout.d.ts +40 -7
  43. package/src/foundry/foundry.js/applications/formApplications/index.d.ts +2 -2
  44. package/src/foundry/foundry.js/applications/formApplications/moduleManagement.d.ts +10 -24
  45. package/src/foundry/foundry.js/applications/formApplications/permissionConfig.d.ts +1 -1
  46. package/src/foundry/foundry.js/applications/formApplications/settingsConfig.d.ts +15 -3
  47. package/src/foundry/foundry.js/applications/formApplications/tokenConfig.d.ts +23 -16
  48. package/src/foundry/foundry.js/applications/formApplications/{defaultTokenConfig.d.ts → tokenConfigs/defaultTokenConfig.d.ts} +29 -16
  49. package/src/foundry/foundry.js/applications/formApplications/tokenConfigs/index.d.ts +1 -0
  50. package/src/foundry/foundry.js/applications/formApplications/wallConfig.d.ts +22 -15
  51. package/src/foundry/foundry.js/applications/formApplications/worldConfig.d.ts +23 -12
  52. package/src/foundry/foundry.js/applications/hotbar.d.ts +7 -3
  53. package/src/foundry/foundry.js/applications/index.d.ts +1 -0
  54. package/src/foundry/foundry.js/applications/invitationLinks.d.ts +25 -10
  55. package/src/foundry/foundry.js/applications/sceneNavigation.d.ts +16 -1
  56. package/src/foundry/foundry.js/applications/sidebar.d.ts +7 -0
  57. package/src/foundry/foundry.js/applications/sidebarTabs/chatLog.d.ts +65 -38
  58. package/src/foundry/foundry.js/applications/sidebarTabs/compendiumDirectory.d.ts +17 -3
  59. package/src/foundry/foundry.js/applications/sidebarTabs/settings.d.ts +19 -16
  60. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/actorDirectory.d.ts +0 -3
  61. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/journalDirectory.d.ts +4 -18
  62. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/macroDirectory.d.ts +2 -8
  63. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/playlistDirectory.d.ts +38 -5
  64. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectories/sceneDirectory.d.ts +6 -0
  65. package/src/foundry/foundry.js/applications/sidebarTabs/sidebarDirectory.d.ts +3 -1
  66. package/src/foundry/foundry.js/applications/supportDetails.d.ts +78 -0
  67. package/src/foundry/foundry.js/clientDocumentMixin.d.ts +2 -2
  68. package/src/foundry/foundry.js/clientDocuments/cards.d.ts +10 -2
  69. package/src/foundry/foundry.js/clientDocuments/chatMessage.d.ts +87 -49
  70. package/src/foundry/foundry.js/clientDocuments/folder.d.ts +3 -7
  71. package/src/foundry/foundry.js/clientDocuments/playlist.d.ts +6 -13
  72. package/src/foundry/foundry.js/clientDocuments/playlistSound.d.ts +6 -0
  73. package/src/foundry/foundry.js/collections/documentCollections/compendiumCollection.d.ts +1 -1
  74. package/src/foundry/foundry.js/collections/documentCollections/worldCollection.d.ts +2 -2
  75. package/src/foundry/foundry.js/config.d.ts +21 -21
  76. package/src/foundry/foundry.js/contextMenu.d.ts +37 -28
  77. package/src/foundry/foundry.js/game.d.ts +2 -2
  78. package/src/foundry/foundry.js/handlebarsHelpers.d.ts +26 -4
  79. package/src/foundry/foundry.js/mouseInteractionManager.d.ts +1 -1
  80. package/src/foundry/foundry.js/perceptionManager.d.ts +1 -1
  81. package/src/foundry/foundry.js/pixi/containers/canvasLayer.d.ts +2 -1
  82. package/src/foundry/foundry.js/pixi/containers/canvasLayers/controlsLayer.d.ts +49 -48
  83. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayer.d.ts +51 -40
  84. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/lightingLayer.d.ts +63 -20
  85. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/mapLayer.d.ts +0 -3
  86. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/mapLayers/backgroundLayer.d.ts +4 -4
  87. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/mapLayers/foregroundLayer.d.ts +21 -0
  88. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/notesLayer.d.ts +1 -1
  89. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/soundsLayer.d.ts +10 -2
  90. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/tokenLayer.d.ts +41 -20
  91. package/src/foundry/foundry.js/pixi/containers/canvasLayers/placeablesLayers/wallsLayer.d.ts +50 -121
  92. package/src/foundry/foundry.js/pixi/containers/canvasLayers/sightLayer.d.ts +125 -107
  93. package/src/foundry/foundry.js/pixi/containers/controlIcon.d.ts +3 -0
  94. package/src/foundry/foundry.js/pixi/containers/index.d.ts +1 -0
  95. package/src/foundry/foundry.js/pixi/containers/objectHUD.d.ts +82 -0
  96. package/src/foundry/foundry.js/pixi/containers/placeableObjects/ambientLight.d.ts +27 -6
  97. package/src/foundry/foundry.js/pixi/containers/placeableObjects/ambientSound.d.ts +26 -4
  98. package/src/foundry/foundry.js/pixi/containers/placeableObjects/drawing.d.ts +34 -20
  99. package/src/foundry/foundry.js/pixi/containers/placeableObjects/measuredTemplate.d.ts +52 -15
  100. package/src/foundry/foundry.js/pixi/containers/placeableObjects/note.d.ts +9 -2
  101. package/src/foundry/foundry.js/pixi/containers/placeableObjects/tile.d.ts +50 -12
  102. package/src/foundry/foundry.js/pixi/containers/placeableObjects/token.d.ts +248 -87
  103. package/src/foundry/foundry.js/pixi/containers/placeableObjects/wall.d.ts +107 -16
  104. package/src/foundry/foundry.js/pixi/filters/abstractFilter.d.ts +42 -0
  105. package/src/foundry/foundry.js/pixi/filters/abstractFilters/fogColorFilter.d.ts +16 -0
  106. package/src/foundry/foundry.js/pixi/filters/abstractFilters/forceColorFilter.d.ts +17 -0
  107. package/src/foundry/foundry.js/pixi/filters/abstractFilters/glowFilter.d.ts +31 -0
  108. package/src/foundry/foundry.js/pixi/filters/abstractFilters/index.d.ts +4 -0
  109. package/src/foundry/foundry.js/pixi/filters/abstractFilters/roofMaskFilter.d.ts +20 -0
  110. package/src/foundry/foundry.js/pixi/filters/index.d.ts +2 -0
  111. package/src/foundry/foundry.js/roll.d.ts +2 -2
  112. package/src/foundry/foundry.js/rollTerms/poolTerm.d.ts +5 -0
  113. package/src/foundry/foundry.js/textEditor.d.ts +266 -231
  114. package/src/types/augments/index.d.ts +2 -0
  115. package/src/types/augments/pixiGraphicsSmooth.d.ts +7 -0
  116. package/src/types/augments/pixiLegacyGraphics.d.ts +7 -0
  117. package/src/types/utils.d.ts +5 -0
@@ -1,6 +1,10 @@
1
- import type { ConfiguredDocumentClass } from '../../../../../types/helperTypes';
1
+ import type {
2
+ ConfiguredDocumentClass,
3
+ ConfiguredDocumentClassForName,
4
+ ConfiguredObjectClassForName
5
+ } from '../../../../../types/helperTypes';
2
6
  import type { DocumentModificationOptions } from '../../../../common/abstract/document.mjs';
3
- import type { WallData } from '../../../../common/data/data.mjs';
7
+ import type { LineIntersection } from '../../../../common/utils/geometry.mjs';
4
8
  import type { HoverInOptions } from '../placeableObject';
5
9
 
6
10
  declare global {
@@ -20,36 +24,83 @@ declare global {
20
24
  controlIcon: null;
21
25
 
22
26
  /**
23
- * @remarks Type is `MouseInteractionManager<this, this['endpoints']>`
27
+ * An reference the Door Control icon associated with this Wall, if any
28
+ * @internal
29
+ * @defaultValue `undefined`
24
30
  */
25
- mouseInteractionManager: MouseInteractionManager<this> | null;
31
+ doorControl: DoorControl | undefined | null;
26
32
 
27
- constructor(document: ConcreteWallDocument);
33
+ /**
34
+ * A reference to an overhead Tile that is a roof, interior to which this wall is contained
35
+ * @defaultValue `undefined`
36
+ */
37
+ roof: InstanceType<ConfiguredObjectClassForName<'Tile'>> | undefined;
28
38
 
29
39
  /**
30
- * An reference the Door Control icon associated with this Wall, if any
31
- * @internal
40
+ * A set which tracks other Wall instances that this Wall intersects with (excluding shared endpoints)
41
+ */
42
+ intersectsWith: Map<InstanceType<ConfiguredObjectClassForName<'Wall'>>, LineIntersection>;
43
+
44
+ /**
45
+ * Cached representation of this wall's endpoints as {@link PolygonVertex}es.
32
46
  * @defaultValue `null`
47
+ * @internal
33
48
  */
34
- doorControl: DoorControl | null;
49
+ protected _vertices: { a: PolygonVertex; b: PolygonVertex } | null;
35
50
 
36
51
  /**
37
- * A reference to an overhead Tile that is a roof, interior to which this wall is contained
38
- * @defaultValue `undefined`
52
+ * Cached representation of the set of this wall's vertices.
53
+ * @defaultValue `null`
54
+ * @internal
39
55
  */
40
- roof: Tile | undefined;
56
+ protected _wallKeys: Set<string> | null;
41
57
 
42
58
  /** @override */
43
- static get embeddedName(): 'Wall';
59
+ static embeddedName: 'Wall';
44
60
 
45
61
  /**
46
62
  * A convenience reference to the coordinates Array for the Wall endpoints, [x0,y0,x1,y1].
47
63
  */
48
64
  get coords(): Wall['data']['c'];
49
65
 
66
+ /**
67
+ * The initial endpoint of the Wall
68
+ */
69
+ get A(): Point;
70
+
71
+ /**
72
+ * The second endpoint of the Wall
73
+ */
74
+ get B(): Point;
75
+
76
+ /**
77
+ * The endpoints of the wall as {@link PolygonVertex}es.
78
+ */
79
+ get vertices(): { a: PolygonVertex; b: PolygonVertex };
80
+
81
+ /**
82
+ * The set of keys for this wall's endpoints.
83
+ */
84
+ get wallKeys(): Set<string>;
85
+
50
86
  /** @override */
51
87
  get bounds(): NormalizedRectangle;
52
88
 
89
+ /**
90
+ * A boolean for whether this wall contains a door
91
+ */
92
+ get isDoor(): boolean;
93
+
94
+ /**
95
+ * A boolean for whether the wall contains an open door
96
+ */
97
+ get isOpen(): boolean;
98
+
99
+ /**
100
+ * Is this Wall interior to a non-occluded roof Tile?
101
+ */
102
+ get hasActiveRoof(): boolean;
103
+
53
104
  /**
54
105
  * Return the coordinates [x,y] at the midpoint of the wall segment
55
106
  */
@@ -73,6 +124,19 @@ declare global {
73
124
  /** @override */
74
125
  draw(): Promise<this>;
75
126
 
127
+ /**
128
+ * Draw a control icon that is used to manipulate the door's open/closed state
129
+ */
130
+ createDoorControl(): DoorControl;
131
+
132
+ /**
133
+ * Determine the orientation of this wall with respect to a reference point
134
+ * @param point - Some reference point, relative to which orientation is determined
135
+ * @returns An orientation in CONST.WALL_DIRECTIONS which indicates whether the Point is left,
136
+ * right, or collinear (both) with the Wall
137
+ */
138
+ orientPoint(point: Point): number;
139
+
76
140
  /** @override */
77
141
  protected _createInteractionManager(): NonNullable<this['mouseInteractionManager']>;
78
142
 
@@ -82,6 +146,7 @@ declare global {
82
146
  /**
83
147
  * Draw a directional prompt icon for one-way walls to illustrate their direction of effect.
84
148
  * @returns The drawn icon
149
+ * @internal
85
150
  */
86
151
  protected _drawDirection(): PIXI.Sprite | null;
87
152
 
@@ -113,7 +178,7 @@ declare global {
113
178
  protected _onRelease(options?: PlaceableObject.ReleaseOptions): void;
114
179
 
115
180
  /** @override */
116
- destroy(options?: Parameters<PIXI.Container['destroy']>[0]): void;
181
+ destroy(options?: Parameters<PlaceableObject['destroy']>[0]): void;
117
182
 
118
183
  /**
119
184
  * Test whether the Wall direction lies between two provided angles
@@ -137,15 +202,41 @@ declare global {
137
202
  getLinkedSegments(): {
138
203
  ids: string[];
139
204
  walls: WallsLayer['placeables'];
140
- endpoints: Array<[number, number]>;
205
+ endpoints: Array<[x: number, y: number]>;
141
206
  };
142
207
 
208
+ /**
209
+ * Determine whether this wall is beneath a roof tile, and is considered "interior", or not.
210
+ */
211
+ identifyInteriorState(): void;
212
+
213
+ /**
214
+ * Update any intersections with this wall.
215
+ */
216
+ updateIntersections(): void;
217
+
218
+ /**
219
+ * Record the intersection points between this wall and another, if any.
220
+ * @param other - The other wall.
221
+ */
222
+ protected _identifyIntersectionsWith(other: InstanceType<ConfiguredDocumentClassForName<'Wall'>>): void;
223
+
224
+ /**
225
+ * Remove this wall's intersections.
226
+ * @internal
227
+ */
228
+ protected _removeIntersections(): void;
229
+
143
230
  /** @override */
144
- protected _onCreate(data: WallData['_source'], options: DocumentModificationOptions, userId: string): void;
231
+ protected _onCreate(
232
+ data: foundry.data.WallData['_source'],
233
+ options: DocumentModificationOptions,
234
+ userId: string
235
+ ): void;
145
236
 
146
237
  /** @override */
147
238
  protected _onUpdate(
148
- changed: DeepPartial<WallData['_source']>,
239
+ changed: DeepPartial<foundry.data.WallData['_source']>,
149
240
  options?: DocumentModificationOptions,
150
241
  userId?: string
151
242
  ): void;
@@ -0,0 +1,42 @@
1
+ /**
2
+ * An abstract filter which provides a framework for reusable definition
3
+ */
4
+ declare abstract class AbstractFilter extends PIXI.Filter {
5
+ /**
6
+ * The default uniforms used by the filter
7
+ * @defaultValue `{}`
8
+ */
9
+ static defaultUniforms: AbstractBaseShader.Uniforms;
10
+
11
+ /**
12
+ * The fragment shader which renders this filter.
13
+ * @defaultValue `undefined`
14
+ * @remarks This is a function in {@link GlowFilter}. See https://gitlab.com/foundrynet/foundryvtt/-/issues/6937
15
+ */
16
+ static fragmentShader: string | ((quality: number, distance: number) => string) | undefined;
17
+
18
+ /**
19
+ * The vertex shader which renders this filter.
20
+ * @defaultValue `undefined`
21
+ */
22
+ static vertexShader: string | undefined;
23
+
24
+ /**
25
+ * A factory method for creating the filter using its defined default values
26
+ * @param uniforms - (default: `{}`)
27
+ */
28
+ static create(uniforms: AbstractBaseShader.Uniforms): AbstractFilter;
29
+
30
+ /**
31
+ * Always target the resolution of the render texture or renderer
32
+ */
33
+ // @ts-expect-error this is a property on PIXI.Filter
34
+ get resolution(): number;
35
+ set resolution(value: number);
36
+
37
+ /**
38
+ * Always target the MSAA level of the render texture or renderer
39
+ */
40
+ get multisample(): PIXI.MSAA_QUALITY;
41
+ set multisample(value: PIXI.MSAA_QUALITY);
42
+ }
@@ -0,0 +1,16 @@
1
+ /**
2
+ * A filter which is rendering explored color according to FoW intensity.
3
+ */
4
+ declare class FogColorFilter extends AbstractFilter {
5
+ /**
6
+ * @defaultValue
7
+ * ```typescript
8
+ * {
9
+ * exploredColor: [1, 1, 1]
10
+ * }
11
+ * ```
12
+ */
13
+ static defaultUniforms: AbstractBaseShader.Uniforms;
14
+
15
+ static fragmentShader: string;
16
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * A filter which forces all non-transparent pixels to a specific color and transparency.
3
+ */
4
+ declare class ForceColorFilter extends AbstractFilter {
5
+ /**
6
+ * @defaultValue
7
+ * ```typescript
8
+ * {
9
+ * color: [1, 1, 1],
10
+ * alpha: 1.0
11
+ * }
12
+ * ```
13
+ */
14
+ static defaultUniforms: AbstractBaseShader.Uniforms;
15
+
16
+ static fragmentShader: string;
17
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * A filter which implements an inner or outer glow around the source texture.
3
+ * Incorporated from https://github.com/pixijs/filters/tree/main/filters/glow
4
+ */
5
+ declare class GlowFilter extends AbstractFilter {
6
+ /**
7
+ * @override
8
+ * @defaultValue
9
+ * ```typescript
10
+ * {
11
+ * distance: 10,
12
+ * innerStrength: 0,
13
+ * glowColor: [1, 1, 1, 1],
14
+ * quality: 0.1,
15
+ * }
16
+ * ```
17
+ */
18
+ static defaultUniforms: AbstractBaseShader.Uniforms & { distance: number; quality: number };
19
+
20
+ /**
21
+ * @override
22
+ * @remarks This could change, see https://gitlab.com/foundrynet/foundryvtt/-/issues/6937
23
+ */
24
+ static fragmentShader(quality: number, distance: number): string;
25
+
26
+ /** @override */
27
+ static vertexShader: string;
28
+
29
+ /** @override */
30
+ static create(uniforms: AbstractBaseShader.Uniforms): GlowFilter;
31
+ }
@@ -0,0 +1,4 @@
1
+ import './fogColorFilter';
2
+ import './forceColorFilter';
3
+ import './glowFilter';
4
+ import './roofMaskFilter';
@@ -0,0 +1,20 @@
1
+ /**
2
+ * This filter turns pixels with an alpha channel &lt; alphaThreshold in transparent pixels
3
+ * Then, optionally, it can turn the result in the chosen color (default: pure white).
4
+ * The alpha [threshold,1] is re-mapped to [0,1] with an hermite interpolation slope to prevent pixelation.
5
+ */
6
+ declare class RoofMaskFilter extends AbstractFilter {
7
+ /**
8
+ * @defaultValue
9
+ * ```typescript
10
+ * {
11
+ * alphaThreshold: 0.75,
12
+ * turnToColor: false,
13
+ * color: [1, 1, 1]
14
+ * }
15
+ * ```
16
+ */
17
+ static defaultUniforms: AbstractBaseShader.Uniforms;
18
+
19
+ static fragmentShader: string;
20
+ }
@@ -1,2 +1,4 @@
1
1
  import './abstractBaseMaskFilter';
2
2
  import './abstractBaseMaskFilters';
3
+ import './abstractFilter';
4
+ import './abstractFilters';
@@ -16,7 +16,7 @@ declare global {
16
16
  * console.log(r.terms); // [Die, OperatorTerm, NumericTerm, OperatorTerm, NumericTerm]
17
17
  *
18
18
  * // Execute the roll
19
- * r.evaluate();
19
+ * await r.evaluate();
20
20
  *
21
21
  * // The resulting equation after it was rolled
22
22
  * console.log(r.result); // 16 + 2 + 4
@@ -142,7 +142,7 @@ declare global {
142
142
  * @example
143
143
  * ```typescript
144
144
  * let r = new Roll("2d6 + 4 + 1d4");
145
- * r.evaluate();
145
+ * await r.evaluate();
146
146
  * console.log(r.result); // 5 + 4 + 2
147
147
  * console.log(r.total); // 11
148
148
  * ```
@@ -59,6 +59,11 @@ declare global {
59
59
  */
60
60
  static CLOSE_REGEXP: RegExp;
61
61
 
62
+ /**
63
+ * A regular expression pattern used to match the entirety of a DicePool expression.
64
+ */
65
+ static REGEXP: RegExp;
66
+
62
67
  /**
63
68
  * @defaultValue `["terms", "modifiers", "rolls", "results"]`
64
69
  */