However as you can see I had to comment it because I am getting a weird type error.
Type 'string[]' is not assignable to type 'readonly [string, ...string[]] | [string, ...string[]] | undefined'. Type 'string[]' is not assignable to type '[string, ...string[]]'. Source provides no match for required element at position 0 in target.ts(2322)
Type 'string[]' is not assignable to type 'readonly [string, ...string[]] | [string, ...string[]] | undefined'. Type 'string[]' is not assignable to type '[string, ...string[]]'. Source provides no match for required element at position 0 in target.ts(2322)