Typehcecked permute.ts against d3.d.ts spec