isaacscript-common 1.2.70 → 1.2.71

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.
@@ -83,4 +83,4 @@ export declare function printConsole(msg: string): void;
83
83
  /**
84
84
  * Helper function to repeat code N times. This is faster to type and cleaner than using a for loop.
85
85
  */
86
- export declare function repeat(n: int, func: () => void): void;
86
+ export declare function repeat(n: int, func: (i: int) => void): void;
@@ -57,7 +57,7 @@ ____exports["repeat"] = function(self, n, func)
57
57
  do
58
58
  local i = 0
59
59
  while i < n do
60
- func(nil)
60
+ func(nil, i)
61
61
  i = i + 1
62
62
  end
63
63
  end
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.2.70",
3
+ "version": "1.2.71",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",