mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-05 06:40:35 +08:00
Chartist: Relax constraints on meta.
This commit is contained in:
@@ -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' }
|
||||
}]
|
||||
});
|
||||
|
||||
|
||||
4
types/chartist/index.d.ts
vendored
4
types/chartist/index.d.ts
vendored
@@ -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> {
|
||||
|
||||
Reference in New Issue
Block a user