A rest parameter allows you a function to accept zero or more arguments of the specified type . In TypeScript, rest parameters follow these rules: A function has only one rest parameter. The rest parameter appears last in the parameter list. The type of the rest parameter is an array type.
Read more