VectorArgRest
Documentation for the VectorArgRest type
type VectorArgRest<D extends number = any> = [number] | number[] | [number[]] | [Vector<D>];// ...
function myFunction(...param: VectorArgRest){
// ...
};
myFunction(1); // a number
myFunction(1,2,3); // an array of numbers (spread as rest parameters)
myFunction([1,2,3]); // a tuple composed by an array of numbers
myFunction(new Vector()); // a VectorLast updated