From ddd1b5cbbd84bf428bb7769dc3b49a3df6f6c0c3 Mon Sep 17 00:00:00 2001 From: Roger Chen Date: Mon, 6 Apr 2015 15:34:20 -0700 Subject: [PATCH] Added interpolate typings for functions in svg.line/area --- 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 b00d808ee8..781de3cd42 100644 --- a/d3/d3.d.ts +++ b/d3/d3.d.ts @@ -1952,13 +1952,13 @@ declare module D3 { /** * Get the interpolation accessor. */ - (): string; + (): string | ((points: number[][]) => string); /** * Set the interpolation accessor. * * @param interpolate The interpolation mode */ - (interpolate: string): Line; + (interpolate: string | ((points: number[][]) => string)): Line; }; /** * Get or set the cardinal spline tension. @@ -2248,13 +2248,13 @@ declare module D3 { /** * Get the interpolation accessor. */ - (): string; + (): string | ((points: number[][]) => string); /** * Set the interpolation accessor. * * @param interpolate The interpolation mode */ - (interpolate: string): Area; + (interpolate: string | ((points: number[][]) => string)): Area; }; /** * Get or set the cardinal spline tension.