JS1221: A variable argument list must be of an array type

The definition of the function has a parameter array (or variable argument list) that is not type annotated as a typed array. A parameter array must be the last parameter in the function declaration, preceded with an ellipsis (...), and type annotated as a typed array. A parameter array cannot be a JScript Array object.

To correct this error

  • Type annotate the variable argument list as a typed array.

See Also

Concepts

Troubleshooting Your Scripts

Reference

function Statement

Other Resources

JScript Reference