diff --git a/flot/jquery.flot.d.ts b/flot/jquery.flot.d.ts index c179d2f03e..70d90b9621 100644 --- a/flot/jquery.flot.d.ts +++ b/flot/jquery.flot.d.ts @@ -198,6 +198,13 @@ declare module jquery.flot { c2p(canvasPoint: canvasPoint):point; } + interface plugin { + init(options: plotOptions): any; + options?: any; + name?: string; + version?: string; + } + interface plot { highlight(series: dataSeries, datapoint: item): void; unhightlight(): void; @@ -221,9 +228,14 @@ declare module jquery.flot { getPlotOffset(): canvasPoint; getOptions(): plotOptions; } + + interface plotStatic { + (placeholder: JQuery, data: dataSeries[], options?: plotOptions): plot; + (placeholder: JQuery, data: any[], options?: plotOptions): plot; + plugins: plugin[]; + } } interface JQueryStatic { - plot(placeholder: JQuery, data: jquery.flot.dataSeries[], options?: jquery.flot.plotOptions): jquery.flot.plot; - plot(placeholder: JQuery, data: any[], options?: jquery.flot.plotOptions): jquery.flot.plot; + plot: jquery.flot.plotStatic; }