From 81a1f6650b18c2d04d02eb35b7b5d38a87f0dff7 Mon Sep 17 00:00:00 2001 From: Tom Wanzek Date: Tue, 13 Sep 2016 09:58:44 -0400 Subject: [PATCH] d3-array: * Add explicit typing to an `extent` test with mixed array including NumCoercible. It appears type inference has changed with the lates TypeScript@next (2.1.0-dev.20160912 or 2.1.0-dev.20160913). This could be a regression in TS, but for now to not break DT/types-2.0 in the interim an explicit cast is applied. --- d3-array/d3-array-tests.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/d3-array/d3-array-tests.ts b/d3-array/d3-array-tests.ts index 7183320b71..26ef2d3ef5 100644 --- a/d3-array/d3-array-tests.ts +++ b/d3-array/d3-array-tests.ts @@ -154,7 +154,7 @@ extentNum = d3Array.extent(numbersArray); extentStr = d3Array.extent(stringyNumbersArray); extentNumeric = d3Array.extent(numericArray); extentDate = d3Array.extent(dateArray); -extentMixed = d3Array.extent([new NumCoercible(10), 13, '12', true]); +extentMixed = d3Array.extent([new NumCoercible(10), 13, '12', true]); // with accessors