lune/tests/task/fcheck.luau
2023-02-06 00:13:12 -05:00

12 lines
232 B
Lua

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