From 7cdf2946399a3c631327ecc6f9b2300b1131de8c Mon Sep 17 00:00:00 2001 From: Justin Lan Date: Tue, 30 Sep 2014 17:35:58 -0700 Subject: [PATCH] Update signature of arguments to defined() The function passed in can take the index. --- d3/d3.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/d3/d3.d.ts b/d3/d3.d.ts index 3250f9c1e..f8ed80415 100644 --- a/d3/d3.d.ts +++ b/d3/d3.d.ts @@ -1902,13 +1902,13 @@ declare module D3 { /** * Get the accessor function that controls where the line is defined. */ - (): (data: any, index ?: number) => boolean; + (): (data: any, index?: number) => boolean; /** * Set the accessor function that controls where the area is defined. * * @param defined The new accessor function */ - (defined: (data: any) => boolean): Line; + (defined: (data: any, index?: number) => boolean): Line; }; } @@ -2198,13 +2198,13 @@ declare module D3 { /** * Get the accessor function that controls where the area is defined. */ - (): (data: any) => any; + (): (data: any, index?: number) => any; /** * Set the accessor function that controls where the area is defined. * * @param defined The new accessor function */ - (defined: (data: any) => any): Area; + (defined: (data: any, index?: number) => any): Area; }; }