The biggest pain is that TS has no idea of how to type a tuple unless you provide a type annotation.
const t1 = [1, "a"] // type is Array<string | number>
// you have to do this
const t1: [number, string] = [1, "a"]
The biggest pain is that TS has no idea of how to type a tuple unless you provide a type annotation.
const t1 = [1, "a"] // type is Array<string | number>
// you have to do this
const t1: [number, string] = [1, "a"]