E0321: expected '?' to mark tuple element as optional
TypeScript tuple types can contain optional elements. These optional elements must be last. It is a syntax error to write a required tuple element after an optional one:
To fix this error, mark the tuple element as optional by adding ?
:
Alternatively, use a union type:
Introduced in quick-lint-js version 2.10.0.