mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 15:57:13 +00:00
Merge pull request #12900 from orkisz/types-2.0
Adding missing import statements
This commit is contained in:
Vendored
+2
@@ -3,6 +3,8 @@
|
||||
// Definitions by: Maciej Suchecki <http://github.com/mc-suchecki>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as Highcharts from "highcharts";
|
||||
|
||||
declare var HighchartsMore: (H: Highcharts.Static) => Highcharts.Static;
|
||||
export = HighchartsMore;
|
||||
export as namespace HighchartsMore;
|
||||
|
||||
Vendored
+24
-20
@@ -3,6 +3,8 @@
|
||||
// Definitions by: David Deutsch <http://github.com/DavidKDeutsch>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as Highcharts from "highcharts";
|
||||
|
||||
declare namespace __Highstock {
|
||||
interface ChartObject extends Highcharts.ChartObject {
|
||||
options: Options;
|
||||
@@ -96,27 +98,29 @@ declare namespace __Highstock {
|
||||
}
|
||||
|
||||
|
||||
interface JQuery {
|
||||
highcharts(type: "StockChart"): __Highstock.ChartObject;
|
||||
/**
|
||||
* Creates a new Highcharts.Chart for the current JQuery selector; usually
|
||||
* a div selected by $('#container')
|
||||
* @param {Highcharts.Options} options Options for this chart
|
||||
* @return current {JQuery} selector the current JQuery selector
|
||||
**/
|
||||
highcharts(type: "StockChart", options: __Highstock.Options): JQuery;
|
||||
/**
|
||||
* Creates a new Highcharts.Chart for the current JQuery selector; usually
|
||||
* a div selected by $('#container')
|
||||
* @param {Highcharts.Options} options Options for this chart
|
||||
* @param callback Callback function used to manipulate the constructed chart instance
|
||||
* @return current {JQuery} selector the current JQuery selector
|
||||
**/
|
||||
highcharts(type: "StockChart", options: __Highstock.Options, callback: (chart: __Highstock.ChartObject) => void): JQuery;
|
||||
declare global {
|
||||
interface JQuery {
|
||||
highcharts(type: "StockChart"): __Highstock.ChartObject;
|
||||
/**
|
||||
* Creates a new Highcharts.Chart for the current JQuery selector; usually
|
||||
* a div selected by $('#container')
|
||||
* @param {Highcharts.Options} options Options for this chart
|
||||
* @return current {JQuery} selector the current JQuery selector
|
||||
**/
|
||||
highcharts(type: "StockChart", options: __Highstock.Options): JQuery;
|
||||
/**
|
||||
* Creates a new Highcharts.Chart for the current JQuery selector; usually
|
||||
* a div selected by $('#container')
|
||||
* @param {Highcharts.Options} options Options for this chart
|
||||
* @param callback Callback function used to manipulate the constructed chart instance
|
||||
* @return current {JQuery} selector the current JQuery selector
|
||||
**/
|
||||
highcharts(type: "StockChart", options: __Highstock.Options, callback: (chart: __Highstock.ChartObject) => void): JQuery;
|
||||
|
||||
|
||||
highcharts(type: string): Highcharts.ChartObject;
|
||||
highcharts(type: string, options: Highcharts.Options): JQuery;
|
||||
highcharts(type: string, options: Highcharts.Options, callback: (chart: Highcharts.ChartObject) => void): JQuery;
|
||||
highcharts(type: string): Highcharts.ChartObject;
|
||||
highcharts(type: string, options: Highcharts.Options): JQuery;
|
||||
highcharts(type: string, options: Highcharts.Options, callback: (chart: Highcharts.ChartObject) => void): JQuery;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user