Validate a tuple or readonly tuple has an exact fixed length.
Type Parameters
Textendsreadonlyany[]
Tuple type to validate
Nextendsnumber
Required tuple length
Remarks
This will check if the length of the tuple T is exactly N. If it is, this resolves to T.
If it is not, this resolves to never, effectively enforcing a compile-time constraint
on the tuple length.
Validate a tuple or readonly tuple has an exact fixed length.