Say I have the type How could I extract the type 2 | boolean when the array could be of an unknown length? Answer You can infer all elements but first. Use spread tuple operator: …, just like in plain javascript
Say I have the type How could I extract the type 2 | boolean when the array could be of an unknown length? Answer You can infer all elements but first. Use spread tuple operator: …, just like in plain javascript