Question: type 'number' is not assignable to type 'long'?
Answer: Type 'number | [number, number]' is not assignable to type 'number'. Type '[number, number]' is not assignable to type 'number'. This is because the output of the type you're assigning from is ambiguous (I'm using D3).