Improve d3's types.