lune/tests/task/fcheck.luau
2023-02-05 19:13:58 -05:00

13 lines
260 B
Lua

return function(index: number, type: string, value: any)
if typeof(value) ~= type then
console.error(
string.format(
"Expected argument #%d to be of type %s, got %s",
index,
type,
console.format(value)
)
)
process.exit(1)
end
end