stronger typing

This commit is contained in:
2025-10-01 12:33:41 -04:00
parent 9c27981d24
commit caa473876a
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ function testFolder(callback: types.callbackFunction, opts: types.opts, folderPa
for _, file in pairs(folder) do
local filePath = `./{folderPath}/{file}`
local fileContents = fs.readFile(filePath)
local result = callback(fileContents, opts)
local result = callback(fileContents, opts) :: boolean
results[file] = result
end
return results