The type specifier of a variadic parameter must be an array.
|test: string, ...optionalParameters: string| // ^^^^^^ Not an array type
Add square brackets to the array specifier.