From 516266a0ac7cc5f8b4e64ae9998121ff9306aad5 Mon Sep 17 00:00:00 2001 From: Matt Traynham Date: Mon, 23 Feb 2015 14:15:12 -0500 Subject: [PATCH] Updates to d3 --- d3/d3.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/d3/d3.d.ts b/d3/d3.d.ts index 03450a0029..4935110e17 100644 --- a/d3/d3.d.ts +++ b/d3/d3.d.ts @@ -702,8 +702,9 @@ declare module D3 { * Parse a delimited string into objects using the header row. * * @param string delimited formatted string to parse + * @param accessor to modify properties of each row */ - parse(string: string): any[]; + parse(string: string, accessor?: (row: any) => any): any[]; /** * Parse a delimited string into tuples, ignoring the header row. * @@ -849,7 +850,7 @@ declare module D3 { sortKeys(comparator: (d1: any, d2: any) => number): Nest; sortValues(comparator: (d1: any, d2: any) => number): Nest; rollup(rollupFunction: (data: any, index: number) => any): Nest; - map(values: any[]): any; + map(values: any[], mapType?: any): any; entries(values: any[]): NestKeyValue[]; }