Open Schahen opened 4 years ago
This goes for normal arrays too:
consoleCommand: (name: string, ...args: string[]) => void;
makes
var consoleCommand: (name: String, args: String) -> Unit
Which is totally wrong. From here: https://github.com/altmp/altv-types/blob/master/client/index.d.ts#L68
We were able get the rest parameters as an array like the following:
val args: Array<String> = js("Array.prototype.slice.call(arguments, 1);")
Consider following declaration:
which is translated to:
Which contradicts to what typescript code was purposed to. Unfortunately it's hard to think of workaround right now since we don't have varargs in lambdas.