JS->TS in d3 /scale, /arrays, and /interpolate