Skip to content

Commit bb5db25

Browse files
committed
docs(common): dimension enum
1 parent 93fe751 commit bb5db25

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/isaacscript-common/src/core/constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ export const NUM_DIMENSIONS = getEnumLength(Dimension) - 1;
276276
/**
277277
* An array containing every valid `Dimension`, not including `Dimension.CURRENT`. (This is derived
278278
* from the `NUM_DIMENSIONS` constant.)
279+
*
280+
* We cannot use the values of the `Dimension` enum because it includes -1.
279281
*/
280282
export const DIMENSIONS: readonly Dimension[] = eRange(
281283
NUM_DIMENSIONS,

0 commit comments

Comments
 (0)