1
1
Fork 0
mirror of https://github.com/lune-org/lune.git synced 2025-04-12 22:40:54 +01:00
lune/tests/task/fcheck.luau

14 lines
270 B
Text

local stdio = require("@lune/stdio")
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