Chartist: Relax constraints on meta.

This commit is contained in:
Sunny Juneja
2018-06-08 15:46:23 -07:00
parent dcddcb0a98
commit 0f53b0059d
2 changed files with 3 additions and 3 deletions

View File

@@ -247,7 +247,7 @@ new Chartist.Pie('.ct-chart', {
value: 70,
name: 'Series 3',
className: 'my-custom-class-three',
meta: 'Meta Three'
meta: { description: 'Meta Three' }
}]
});

View File

@@ -1,6 +1,6 @@
// 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>, Anastasiia Antonova <https://github.com/affilnost>
// Definitions by: Matt Gibbs <https://github.com/mtgibbs>, Simon Pfeifer <https://github.com/psimonski>, Cassey Lottman <https://github.com/clottman>, Anastasiia Antonova <https://github.com/affilnost>, Sunny Juneja <https://github.com/sunnyrjuneja>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace Chartist {
@@ -101,7 +101,7 @@ declare namespace Chartist {
value?: number;
data?: Array<number>;
className?: string;
meta?: string; // I assume this could probably be a number as well?
meta?: any;
}
interface IChartistBase<T extends IChartOptions> {