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.
This commit is contained in:
Tom Wanzek
2016-09-13 09:58:44 -04:00
parent c9cbddf3de
commit 81a1f6650b
+1 -1
View File
@@ -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<NumCoercible>([new NumCoercible(10), 13, '12', true]);
// with accessors