1 2 3 4 5 6 7 8 9 10 11 12 13
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