Chartist - add another possible series type to IChartistData (#22803)

* missing comment

* missing comment

* add iteratee property shorthand for uniq in underscore

* undo bad commit

* can also pass array of array of data to chartist
This commit is contained in:
Cassey Lottman
2018-01-10 17:25:41 -06:00
committed by Ryan Cavanaugh
parent 01d4dcdcd2
commit 5165332409

View File

@@ -1,4 +1,4 @@
// Type definitions for Chartist v0.9.8
// Type definitions for Chartist v0.9.81
// Project: https://github.com/gionkunz/chartist-js
// Definitions by: Matt Gibbs <https://github.com/mtgibbs>, Simon Pfeifer <https://github.com/psimonski>, Cassey Lottman <https://github.com/clottman>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -78,7 +78,7 @@ declare namespace Chartist {
// TODO: come in and tidy this up and make it fit better
interface IChartistData {
labels?: Array<string> | Array<number> | Array<Date>;
series: Array<IChartistSeriesData> | Array<number> | Array<Array<number>>;
series: Array<IChartistSeriesData> | Array<Array<IChartistData>> | Array<number> | Array<Array<number>>;
}
interface IChartistSeriesData {