diff --git a/d3-array/index.d.ts b/d3-array/index.d.ts index 8bcfeb7519..371a60b52b 100644 --- a/d3-array/index.d.ts +++ b/d3-array/index.d.ts @@ -199,7 +199,7 @@ export function permute(array: { [key: number]: T }, keys: number[]): T[]; /** * Given the specified object, return an array corresponding to the list of property names in 'keys'. */ -export function permute(object: T, keys: K[]): T[K][]; +export function permute(object: { [key: string]: T }, keys: string[]): T[]; /** * Generates a 0-based numeric sequence. The output range does not include 'stop'.