Type d3 map

Generic types are fun!
Change the above comment to match the signature

I think it's replace any with T