mirror of
https://github.com/lune-org/lune.git
synced 2024-12-12 21:10:36 +00:00
12 lines
232 B
Lua
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
|