isaacscript-common 1.2.285 → 1.2.286
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.
|
@@ -123,6 +123,8 @@ export declare function printConsole(msg: string): void;
|
|
|
123
123
|
* ```
|
|
124
124
|
*/
|
|
125
125
|
export declare function repeat(n: int, func: (i: int) => void): void;
|
|
126
|
+
/** Helper function to prevent early returns from being deleted by ESLint. */
|
|
127
|
+
export declare function todo(): void;
|
|
126
128
|
/**
|
|
127
129
|
* Helper function to check every value of a custom enum for -1. This is helpful as a run-time check
|
|
128
130
|
* because many methods of the Isaac class return -1 if they fail.
|
package/dist/functions/utils.lua
CHANGED
|
@@ -84,6 +84,8 @@ ____exports["repeat"] = function(self, n, func)
|
|
|
84
84
|
end
|
|
85
85
|
end
|
|
86
86
|
end
|
|
87
|
+
function ____exports.todo(self)
|
|
88
|
+
end
|
|
87
89
|
function ____exports.validateCustomEnum(self, transpiledEnumName, transpiledEnum)
|
|
88
90
|
local customEnumType = type(transpiledEnum)
|
|
89
91
|
if customEnumType ~= "table" then
|