Problem Statement
Optional tuple element syntax:
Explanation
Optional elements go after the element’s type using `?` inside the tuple type, e.g., `[A, B?]`. Standalone `[number?]` is not valid, and parentheses variants are not TypeScript syntax.
Code Solution
SolutionRead Only
type MaybeLabel = [id: number, label?: string]; const a: MaybeLabel = [1]; const b: MaybeLabel = [2, 'two'];
