From 7f0d226ee19e8bb7eb81dec34ceb4a58fb3bc8d7 Mon Sep 17 00:00:00 2001 From: lkchen-x1c Date: Mon, 24 Oct 2016 02:38:28 -0400 Subject: [PATCH] fix implicit error --- d3-box/d3-box-tests.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/d3-box/d3-box-tests.ts b/d3-box/d3-box-tests.ts index acbd928d6f..191962ff13 100644 --- a/d3-box/d3-box-tests.ts +++ b/d3-box/d3-box-tests.ts @@ -3,8 +3,8 @@ // Inspired by http://bl.ocks.org/mbostock/4061502 -function iqr(k) { - return function(d) { +function iqr(k: number) { + return function(d: any) { var q1 = d.quartiles[0], q3 = d.quartiles[2], iqr = (q3 - q1) * k;