Skip to content
This repository
Browse code

Update reference paths

  • Loading branch information...
commit 209d95071a54fcd6822dd45dfdcddbb5e549afdd 1 parent a427049
Boris Yankov authored

Showing 90 changed files with 928 additions and 925 deletions. Show diff stats Hide diff stats

  1. +1 1  angularjs/angular-cookies.d.ts
  2. +1 1  angularjs/angular-mocks.d.ts
  3. +1 1  angularjs/angular-resource.d.ts
  4. +1 1  angularjs/angular-sanitize.d.ts
  5. +1 1  angularjs/angular.d.ts
  6. +1 1  async/async-tests.ts
  7. +1 1  backbone/backbone-tests.ts
  8. +1 1  backbone/backbone.d.ts
  9. +1 1  bootstrap.datepicker/bootstrap.datepicker-tests.ts
  10. +1 1  bootstrap.datepicker/bootstrap.datepicker.d.ts
  11. +2 2 bootstrap/bootstrap-tests.ts
  12. +1 1  bootstrap/bootstrap.d.ts
  13. +1 1  breeze/breeze.d.ts
  14. +1 1  chosen/chosen-tests.ts
  15. +1 1  chosen/chosen.jquery.d.ts
  16. +1 1  codemirror/codemirror-tests.ts
  17. +1 1  easeljs/easeljs-tests.ts
  18. +1 1  easeljs/easeljs.d.ts
  19. +2 2 ember/ember-tests.ts
  20. +1 1  express/express-tests.ts
  21. +1 1  express/express.d.ts
  22. +2 2 fancybox/fancybox-tests.ts
  23. +3 1 fancybox/fancybox.d.ts
  24. +215 215 flot/jquery.flot.d.ts
  25. +2 2 foundation/foundation-tests.ts
  26. +1 1  foundation/foundation.d.ts
  27. +2 2 hammerjs/hammerjs-tests.ts
  28. +1 1  hammerjs/hammerjs.d.ts
  29. +1 1  handlebars/handlebars-tests.ts
  30. +99 100 highcharts/highcharts-test.ts
  31. +1 1  history/history-tests.ts
  32. +1 1  history/history.d.ts
  33. +1 1  humane/humane-tests.ts
  34. +1 1  i18next/i18next.d.ts
  35. +1 1  i18next/tests/i18next.d.tests.ts
  36. +1 1  impress/impress-tests.ts
  37. +1 1  iscroll/iscroll-tests.ts
  38. +1 1  jasmine/jasmine-tests.ts
  39. +37 37 jquery.cookie/jquery.cookie-tests.ts
  40. +31 31 jquery.cookie/jquery.cookie.d.ts
  41. +1 1  jquery.dynatree/jquery.dynatree.d.ts
  42. +49 49 jquery.jnotify/jquery.jnotify-tests.ts
  43. +1 1  jquery.jnotify/jquery.jnotify.d.ts
  44. +44 44 jquery.timepicker/jquery.timepicker-tests.ts
  45. +2 2 jquery.timepicker/jquery.timepicker.d.ts
  46. +93 93 jquery.transit/jquery.transit-tests.ts
  47. +1 1  jquery.transit/jquery.transit.d.ts
  48. +2 2 jquery.validation/jquery.validation-tests.ts
  49. +1 1  jquery.validation/jquery.validation.d.ts
  50. +27 27 jquery.watermark/jquery.watermark-tests.ts
  51. +1 1  jquery.watermark/jquery.watermark.d.ts
  52. +1 1  jquery/jquery-tests.ts
  53. +2 2 jquerymobile/jquerymobile-tests.ts
  54. +1 1  jquerymobile/jquerymobile.d.ts
  55. +2 2 jqueryui/jqueryui-tests.ts
  56. +1 1  jqueryui/jqueryui.d.ts
  57. +2 2 knockback/knockback.d.ts
  58. +29 29 knockout.editables/ko.editables.d.ts
  59. +1 1  knockout.mapping/knockout.mapping.d.ts
  60. +1 1  knockout.validation/knockout.validation.d.ts
  61. +18 18 knockout.viewmodel/knockout.viewmodel.d.ts
  62. +2 2 knockout/knockout-tests.ts
  63. +3 3 kolite/kolite-tests.ts
  64. +2 2 kolite/kolite.d.ts
  65. +2 2 linq/linq-tests.ts
  66. +1 1  modernizr/modernizr-tests.ts
  67. +1 1  moment/moment-tests.ts
  68. +1 1  msnodesql/msnodesql-tests.ts
  69. +1 1  msnodesql/msnodesql.d.ts
  70. +1 1  mustache/mustache-tests.ts
  71. +1 1  node_redis/node_redis-tests.ts
  72. +1 1  phonegap/phonegap-tests.ts
  73. +1 1  platform/platform-tests.ts
  74. +142 142 pouchDB/pouch-tests.ts
  75. +1 1  qunit/qunit-tests.ts
  76. +1 1  raphael/raphael-tests.ts
  77. +1 1  requirejs/require-tests.ts
  78. +1 1  sammyjs/sammyjs-tests.ts
  79. +2 2 select2/select2-tests.ts
  80. +1 1  select2/select2.d.ts
  81. +1 1  signalr/signalr-tests.ts
  82. +1 1  signalr/signalr.d.ts
  83. +1 1  socket.io/socket.io.d.ts
  84. +1 1  spin/spin-tests.ts
  85. +1 1  state-machine/state-machine-tests.ts
  86. +1 1  swipeview/swipeview-tests.ts
  87. +1 1  toastr/toastr-tests.ts
  88. +48 46 toastr/toastr.d.ts
  89. +1 1  underscore/underscore-tests.ts
  90. +1 1  unity-webapi/unity-webapi-tests.ts
2  angularjs/angular-cookies.d.ts
@@ -4,7 +4,7 @@
4 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped
5 5
6 6
7   -/// <reference path="angular-1.0.d.ts" />
  7 +/// <reference path="angular.d.ts" />
8 8
9 9 ///////////////////////////////////////////////////////////////////////////////
10 10 // ngCookies module (angular-cookies.js)
2  angularjs/angular-mocks.d.ts
@@ -4,7 +4,7 @@
4 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped
5 5
6 6
7   -/// <reference path="angular-1.0.d.ts" />
  7 +/// <reference path="angular.d.ts" />
8 8
9 9 ///////////////////////////////////////////////////////////////////////////////
10 10 // ngMock module (angular-mocks.js)
2  angularjs/angular-resource.d.ts
@@ -3,7 +3,7 @@
3 3 // Definitions by: Diego Vilar <http://github.com/diegovilar>
4 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped
5 5
6   -/// <reference path="angular-1.0.d.ts" />
  6 +/// <reference path="angular.d.ts" />
7 7
8 8
9 9 ///////////////////////////////////////////////////////////////////////////////
2  angularjs/angular-sanitize.d.ts
@@ -4,7 +4,7 @@
4 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped
5 5
6 6
7   -/// <reference path="angular-1.0.d.ts" />
  7 +/// <reference path="angular.d.ts" />
8 8
9 9 ///////////////////////////////////////////////////////////////////////////////
10 10 // ngSanitize module (angular-sanitize.js)
2  angularjs/angular.d.ts
@@ -4,7 +4,7 @@
4 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped
5 5
6 6
7   -/// <reference path="../jquery/jquery-1.9.d.ts" />
  7 +/// <reference path="../jquery/jquery.d.ts" />
8 8
9 9 declare var angular: ng.IAngularStatic;
10 10
2  async/async-tests.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="async-0.1.d.ts" />
  1 +/// <reference path="async.d.ts" />
2 2
3 3 var fs, path;
4 4
2  backbone/backbone-tests.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="backbone-0.9.d.ts" />
  1 +/// <reference path="backbone.d.ts" />
2 2
3 3 declare var _, $;
4 4
2  backbone/backbone.d.ts
@@ -4,7 +4,7 @@
4 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped
5 5
6 6
7   -/// <reference path="../jquery/jquery-1.9.d.ts" />
  7 +/// <reference path="../jquery/jquery.d.ts" />
8 8
9 9 declare module Backbone {
10 10
2  bootstrap.datepicker/bootstrap.datepicker-tests.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="../jquery/jquery-1.9.d.ts"/>
  1 +/// <reference path="../jquery/jquery.d.ts"/>
2 2 /// <reference path="bootstrap.datepicker.d.ts"/>
3 3
4 4 function tests_simple() {
2  bootstrap.datepicker/bootstrap.datepicker.d.ts
@@ -4,7 +4,7 @@
4 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped
5 5
6 6
7   -/// <reference path="../jquery/jquery-1.9.d.ts"/>
  7 +/// <reference path="../jquery/jquery.d.ts"/>
8 8
9 9 interface DatepickerOptions {
10 10 format?: string;
4 bootstrap/bootstrap-tests.ts
... ... @@ -1,5 +1,5 @@
1   -/// <reference path="../jquery/jquery-1.9.d.ts" />
2   -/// <reference path="bootstrap-2.1.d.ts" />
  1 +/// <reference path="../jquery/jquery.d.ts" />
  2 +/// <reference path="bootstrap.d.ts" />
3 3
4 4 $('body').off('.data-api');
5 5 $('body').off('.alert.data-api');
2  bootstrap/bootstrap.d.ts
@@ -4,7 +4,7 @@
4 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped
5 5
6 6
7   -/// <reference path="../jquery/jquery-1.9.d.ts"/>
  7 +/// <reference path="../jquery/jquery.d.ts"/>
8 8
9 9 interface ModalOptions {
10 10 backdrop?: bool;
2  breeze/breeze.d.ts
@@ -3,7 +3,7 @@
3 3 // Definitions by: Boris Yankov <https://github.com/borisyankov/>
4 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped
5 5
6   -// Updated Jan 14 2011 - Jay Traband ( www.ideablade.com).
  6 +// Updated Jan 14 2011 - Jay Traband (www.ideablade.com)
7 7
8 8
9 9 declare module BreezeCore {
2  chosen/chosen-tests.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="chosen-0.9.d.ts" />
  1 +/// <reference path="chosen.jquery.d.ts" />
2 2
3 3 $(".chzn-select").chosen({ no_results_text: "No results matched" });
4 4 $("#form_field").chosen().change();
2  chosen/chosen.jquery.d.ts
@@ -4,7 +4,7 @@
4 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped
5 5
6 6
7   -/// <reference path="../jquery/jquery-1.9.d.ts"/>
  7 +/// <reference path="../jquery/jquery.d.ts"/>
8 8
9 9 interface ChosenOptions {
10 10 allow_single_deselect?: bool;
2  codemirror/codemirror-tests.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="codemirror-3.0.d.ts" />
  1 +/// <reference path="codemirror.d.ts" />
2 2
3 3 var myCodeMirror = CodeMirror(document.body);
4 4
2  easeljs/easeljs-tests.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="easeljs-0.5.d.ts" />
  1 +/// <reference path="easeljs.d.ts" />
2 2
3 3 function test_simple() {
4 4 var canvas = document.getElementById('canvas');
2  easeljs/easeljs.d.ts
@@ -11,7 +11,7 @@
11 11 */
12 12
13 13
14   -/// <reference path="../tweenjs/tweenjs-0.3.d.ts" />
  14 +/// <reference path="../tweenjs/tweenjs.d.ts" />
15 15
16 16 // rename the native MouseEvent, to avoid conflit with createjs's MouseEvent
17 17 interface NativeMouseEvent extends MouseEvent {
4 ember/ember-tests.ts
... ... @@ -1,5 +1,5 @@
1   -/// <reference path="ember-1.0.d.ts" />
2   -/// <reference path="handlebars-1.0.d.ts" />
  1 +/// <reference path="ember.d.ts" />
  2 +/// <reference path="../handlebars/handlebars.d.ts" />
3 3
4 4 var App;
5 5
2  express/express-tests.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="express-3.0.d.ts" />
  1 +/// <reference path="express.d.ts" />
2 2
3 3 declare var _, $;
4 4
2  express/express.d.ts
@@ -19,7 +19,7 @@ connect.session({})
19 19
20 20 */
21 21
22   -///<reference path='../node/node-0.8.d.ts' />
  22 +///<reference path='../node/node.d.ts' />
23 23
24 24 // do not reference this. use module('express') instead
25 25 declare module _express {
4 fancybox/fancybox-tests.ts
... ... @@ -1,5 +1,5 @@
1   -/// <reference path="jquery-1.8.d.ts" />
2   -/// <reference path="fancybox-2.1.d.ts" />
  1 +/// <reference path="../jquery/jquery.d.ts" />
  2 +/// <reference path="fancybox.d.ts" />
3 3
4 4 $('.fancybox').fancybox();
5 5 $('.fancybox').fancybox({
4 fancybox/fancybox.d.ts
@@ -4,6 +4,8 @@
4 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped
5 5
6 6
  7 +/// <reference path="../jquery/jquery.d.ts" />
  8 +
7 9 interface FancyboxOptions {
8 10 padding?: any; // number or []
9 11 margin?: any; // number or []
@@ -87,7 +89,7 @@ interface FancyboxMethods {
87 89 showLoading();
88 90 hideLoading();
89 91
90   - (options?: FancyboxOptions): void;
  92 + (options: FancyboxOptions): void;
91 93 (selector: string, options?: FancyboxOptions): void;
92 94 (selector: JQuery, options?: FancyboxOptions): void;
93 95 (group?: any[], options?: FancyboxOptions): void;
430 flot/jquery.flot.d.ts
... ... @@ -1,215 +1,215 @@
1   -/// <reference path="jquery.d.ts" />
2   -
3   -module jquery.flot {
4   - interface plotOptions {
5   - colors?: any[];
6   - series?: seriesOptions;
7   - legend?: legendOptions;
8   - xaxis?: axisOptions;
9   - yaxis?: axisOptions;
10   - xaxes?: axisOptions[];
11   - yaxes?: axisOptions[];
12   - grid?: gridOptions;
13   - interfaction?: interaction;
14   - hooks?: hooks;
15   - }
16   -
17   - interface hooks {
18   - processOptions: { (plot: plot, options: plotOptions): void; } [];
19   - processRawData: { (plot: plot, series: dataSeries, data: any[], datapoints: datapoints): void; }[];
20   - processDatapoints: { (plot: plot, series: dataSeries, datapoints: datapoints): void; }[];
21   - processOffset: { (plot: plot, offset: canvasPoint): void; }[];
22   - drawBackground: { (plot: plot, context: CanvasRenderingContext2D): void; }[];
23   - drawSeries: { (plot: plot, context: CanvasRenderingContext2D, series: dataSeries): void; }[];
24   - draw: { (plot: plot, context: CanvasRenderingContext2D): void; }[];
25   - bindEvents: { (plot: plot, eventHolder: JQuery): void; }[];
26   - drawOverlay: { (plot: plot, context: CanvasRenderingContext2D): void; }[];
27   - shutdown: { (plot: plot, eventHolder: JQuery): void; }[];
28   - }
29   -
30   - interface interaction {
31   - redrawOverlayInterval?: number;
32   - }
33   -
34   - interface gridOptions {
35   - show?: bool;
36   - aboveData?: bool;
37   - color?: any; // color
38   - backgroundColor?: any; //color/gradient or null
39   - margin?: any; // number or margin object
40   - labelMargin?: number;
41   - axisMargin?: number;
42   - markings?: any; //array of markings or (fn: axes -> array of markings)
43   - borderWidth: number;
44   - borderColor?: any; // color or null
45   - minBorderMargin?: number; // or null
46   - clickable?: bool;
47   - hoverable?: bool;
48   - autoHighlight?: bool;
49   - mouseActiveRadius?: number;
50   - tickColor?: any;
51   - markingsColor?: any;
52   - markingsLineWidth?: number;
53   - }
54   -
55   - interface legendOptions {
56   - show?: bool;
57   - labelFormatter?: (label: string, series: any) => string; // null or (fn: string, series object -> string)
58   - labelBoxBorderColor?: any; //color
59   - noColumns?: number;
60   - position?: string; //"ne" or "nw" or "se" or "sw"
61   - margin?: any; //number of pixels or [x margin, y margin]
62   - backgroundColor?: any; //null or color
63   - backgroundOpacity?: number; // between 0 and 1
64   - container?: JQuery; // null or jQuery object/DOM element/jQuery expression
65   - sorted?: any; //null/false, true, "ascending", "descending" or a comparator
66   - }
67   -
68   - interface seriesOptions {
69   - color?: number;
70   - label?: string;
71   - lines?: linesOptions;
72   - bars?: barsOptions;
73   - points?: pointsOptions;
74   - xaxis?: number;
75   - yaxis?: number;
76   - clickable?: bool;
77   - hoverable?: bool;
78   - shadowSize?: number;
79   - highlightColor?: any;
80   - }
81   -
82   - interface dataSeries extends seriesOptions {
83   - data: any[];
84   - }
85   -
86   - interface axisOptions {
87   - show?: bool; // null or true/false
88   - position?: string; // "bottom" or "top" or "left" or "right"
89   -
90   - color?: any; // null or color spec
91   - tickColor?: any; // null or color spec
92   - font?: any; // null or font spec object
93   -
94   - min?: number;
95   - max?: number;
96   - autoscaleMargin?: number;
97   -
98   - transform?: (v: number) => number; // null or fn: number -> number
99   - inverseTransform?: (v: number) => number; // null or fn: number -> number
100   -
101   - ticks?: any; // null or number or ticks array or (fn: axis -> ticks array)
102   - tickSize?: any; // number or array
103   - minTickSize?: any; // number or array
104   - tickFormatter?: (t: number) => string; // (fn: number, object -> string) or string
105   - tickDecimals?: number;
106   -
107   - labelWidth?: number;
108   - labelHeight?: number;
109   - reserveSpace?: bool;
110   -
111   - tickLength?: number;
112   -
113   - alignTicksWithAxis?: number;
114   - }
115   -
116   - interface seriesTypeBase {
117   - show?: bool;
118   - lineWidth?: number;
119   - fill?: any; //boolean or number
120   - fillColor?: any; //null or color/gradient
121   - }
122   -
123   - interface linesOptions extends seriesTypeBase {
124   - steps?: bool;
125   - }
126   -
127   - interface barsOptions extends seriesTypeBase {
128   - barWidth?: number;
129   - align?: string;
130   - horizontal?: bool;
131   - }
132   -
133   - interface pointsOptions extends seriesTypeBase {
134   - radius?: number;
135   - symbol?: any;
136   - }
137   -
138   - interface gradient {
139   - colors: any[];
140   - }
141   -
142   - interface item {
143   - datapoint: number[]; // the point, e.g. [0, 2]
144   - dataIndex: number; // the index of the point in the data array
145   - series: dataSeries; //the series object
146   - seriesIndex: number; //the index of the series
147   - pageX: number;
148   - pageY: number; //the global screen coordinates of the point
149   - }
150   -
151   - interface datapoints {
152   - points: number[];
153   - pointsize: number;
154   - format: datapointFormat[];
155   - }
156   -
157   - interface datapointFormat {
158   - x?: bool;
159   - y?: bool;
160   - number: bool;
161   - required: bool;
162   - defaultValue?: number;
163   - }
164   -
165   - interface point {
166   - x: number;
167   - y: number;
168   - }
169   -
170   - interface canvasPoint {
171   - top: number;
172   - left: number;
173   - bottom?: number;
174   - right?: number;
175   - }
176   -
177   - interface axes {
178   - xaxis: axis;
179   - yaxis: axis;
180   - x2axis?: axis;
181   - y2axis?: axis;
182   - }
183   -
184   - interface axis extends axisOptions {
185   - p2c(point):canvasPoint;
186   - c2p(canvasPoint):point;
187   - }
188   -
189   - interface plot {
190   - highlight(series: dataSeries, datapoint: item);
191   - unhightlight();
192   - unhighlight(series: dataSeries, datapoint: item);
193   - setData(data: any);
194   - setupGrid();
195   - draw();
196   - triggerRedrawOverlay();
197   - width();
198   - height();
199   - offset();
200   - pointOffset(point: point);
201   - resize();
202   - shutdown();
203   - getData(): dataSeries[];
204   - getAxes(): axes;
205   - getPlaceholder(): JQuery;
206   - getCanvas(): HTMLCanvasElement;
207   - getPlotOffset(): canvasPoint;
208   - getOptions(): plotOptions;
209   - }
210   -}
211   -
212   -interface JQueryStatic {
213   - plot(placeholder: JQuery, data: jquery.flot.dataSeries[], options?: jquery.flot.plotOptions): jquery.flot.plot;
214   - plot(placeholder: JQuery, data: any[], options?: jquery.flot.plotOptions): jquery.flot.plot;
215   -}
  1 +/// <reference path="../jquery/jquery.d.ts" />
  2 +
  3 +module jquery.flot {
  4 + interface plotOptions {
  5 + colors?: any[];
  6 + series?: seriesOptions;
  7 + legend?: legendOptions;
  8 + xaxis?: axisOptions;
  9 + yaxis?: axisOptions;
  10 + xaxes?: axisOptions[];
  11 + yaxes?: axisOptions[];
  12 + grid?: gridOptions;
  13 + interfaction?: interaction;
  14 + hooks?: hooks;
  15 + }
  16 +
  17 + interface hooks {
  18 + processOptions: { (plot: plot, options: plotOptions): void; } [];
  19 + processRawData: { (plot: plot, series: dataSeries, data: any[], datapoints: datapoints): void; }[];
  20 + processDatapoints: { (plot: plot, series: dataSeries, datapoints: datapoints): void; }[];
  21 + processOffset: { (plot: plot, offset: canvasPoint): void; }[];
  22 + drawBackground: { (plot: plot, context: CanvasRenderingContext2D): void; }[];
  23 + drawSeries: { (plot: plot, context: CanvasRenderingContext2D, series: dataSeries): void; }[];
  24 + draw: { (plot: plot, context: CanvasRenderingContext2D): void; }[];
  25 + bindEvents: { (plot: plot, eventHolder: JQuery): void; }[];
  26 + drawOverlay: { (plot: plot, context: CanvasRenderingContext2D): void; }[];
  27 + shutdown: { (plot: plot, eventHolder: JQuery): void; }[];
  28 + }
  29 +
  30 + interface interaction {
  31 + redrawOverlayInterval?: number;
  32 + }
  33 +
  34 + interface gridOptions {
  35 + show?: bool;
  36 + aboveData?: bool;
  37 + color?: any; // color
  38 + backgroundColor?: any; //color/gradient or null
  39 + margin?: any; // number or margin object
  40 + labelMargin?: number;
  41 + axisMargin?: number;
  42 + markings?: any; //array of markings or (fn: axes -> array of markings)
  43 + borderWidth: number;
  44 + borderColor?: any; // color or null
  45 + minBorderMargin?: number; // or null
  46 + clickable?: bool;
  47 + hoverable?: bool;
  48 + autoHighlight?: bool;
  49 + mouseActiveRadius?: number;
  50 + tickColor?: any;
  51 + markingsColor?: any;
  52 + markingsLineWidth?: number;
  53 + }
  54 +
  55 + interface legendOptions {
  56 + show?: bool;
  57 + labelFormatter?: (label: string, series: any) => string; // null or (fn: string, series object -> string)
  58 + labelBoxBorderColor?: any; //color
  59 + noColumns?: number;
  60 + position?: string; //"ne" or "nw" or "se" or "sw"
  61 + margin?: any; //number of pixels or [x margin, y margin]
  62 + backgroundColor?: any; //null or color
  63 + backgroundOpacity?: number; // between 0 and 1
  64 + container?: JQuery; // null or jQuery object/DOM element/jQuery expression
  65 + sorted?: any; //null/false, true, "ascending", "descending" or a comparator
  66 + }
  67 +
  68 + interface seriesOptions {
  69 + color?: number;
  70 + label?: string;
  71 + lines?: linesOptions;
  72 + bars?: barsOptions;
  73 + points?: pointsOptions;
  74 + xaxis?: number;
  75 + yaxis?: number;
  76 + clickable?: bool;
  77 + hoverable?: bool;
  78 + shadowSize?: number;
  79 + highlightColor?: any;
  80 + }
  81 +
  82 + interface dataSeries extends seriesOptions {
  83 + data: any[];
  84 + }
  85 +
  86 + interface axisOptions {
  87 + show?: bool; // null or true/false
  88 + position?: string; // "bottom" or "top" or "left" or "right"
  89 +
  90 + color?: any; // null or color spec
  91 + tickColor?: any; // null or color spec
  92 + font?: any; // null or font spec object
  93 +
  94 + min?: number;
  95 + max?: number;
  96 + autoscaleMargin?: number;
  97 +
  98 + transform?: (v: number) => number; // null or fn: number -> number
  99 + inverseTransform?: (v: number) => number; // null or fn: number -> number
  100 +
  101 + ticks?: any; // null or number or ticks array or (fn: axis -> ticks array)
  102 + tickSize?: any; // number or array
  103 + minTickSize?: any; // number or array
  104 + tickFormatter?: (t: number) => string; // (fn: number, object -> string) or string
  105 + tickDecimals?: number;
  106 +
  107 + labelWidth?: number;
  108 + labelHeight?: number;
  109 + reserveSpace?: bool;
  110 +
  111 + tickLength?: number;
  112 +
  113 + alignTicksWithAxis?: number;
  114 + }
  115 +
  116 + interface seriesTypeBase {
  117 + show?: bool;
  118 + lineWidth?: number;
  119 + fill?: any; //boolean or number
  120 + fillColor?: any; //null or color/gradient
  121 + }
  122 +
  123 + interface linesOptions extends seriesTypeBase {
  124 + steps?: bool;
  125 + }
  126 +
  127 + interface barsOptions extends seriesTypeBase {
  128 + barWidth?: number;
  129 + align?: string;
  130 + horizontal?: bool;
  131 + }
  132 +
  133 + interface pointsOptions extends seriesTypeBase {
  134 + radius?: number;
  135 + symbol?: any;
  136 + }
  137 +
  138 + interface gradient {
  139 + colors: any[];
  140 + }
  141 +
  142 + interface item {
  143 + datapoint: number[]; // the point, e.g. [0, 2]
  144 + dataIndex: number; // the index of the point in the data array
  145 + series: dataSeries; //the series object
  146 + seriesIndex: number; //the index of the series
  147 + pageX: number;
  148 + pageY: number; //the global screen coordinates of the point
  149 + }
  150 +
  151 + interface datapoints {
  152 + points: number[];
  153 + pointsize: number;
  154 + format: datapointFormat[];
  155 + }
  156 +
  157 + interface datapointFormat {
  158 + x?: bool;
  159 + y?: bool;
  160 + number: bool;
  161 + required: bool;
  162 + defaultValue?: number;
  163 + }
  164 +
  165 + interface point {
  166 + x: number;
  167 + y: number;
  168 + }
  169 +
  170 + interface canvasPoint {
  171 + top: number;
  172 + left: number;
  173 + bottom?: number;
  174 + right?: number;
  175 + }
  176 +
  177 + interface axes {
  178 + xaxis: axis;
  179 + yaxis: axis;
  180 + x2axis?: axis;
  181 + y2axis?: axis;
  182 + }
  183 +
  184 + interface axis extends axisOptions {
  185 + p2c(point):canvasPoint;
  186 + c2p(canvasPoint):point;
  187 + }
  188 +
  189 + interface plot {
  190 + highlight(series: dataSeries, datapoint: item);
  191 + unhightlight();
  192 + unhighlight(series: dataSeries, datapoint: item);
  193 + setData(data: any);
  194 + setupGrid();
  195 + draw();
  196 + triggerRedrawOverlay();
  197 + width();
  198 + height();
  199 + offset();
  200 + pointOffset(point: point);
  201 + resize();
  202 + shutdown();
  203 + getData(): dataSeries[];
  204 + getAxes(): axes;
  205 + getPlaceholder(): JQuery;
  206 + getCanvas(): HTMLCanvasElement;
  207 + getPlotOffset(): canvasPoint;
  208 + getOptions(): plotOptions;
  209 + }
  210 +}
  211 +
  212 +interface JQueryStatic {
  213 + plot(placeholder: JQuery, data: jquery.flot.dataSeries[], options?: jquery.flot.plotOptions): jquery.flot.plot;
  214 + plot(placeholder: JQuery, data: any[], options?: jquery.flot.plotOptions): jquery.flot.plot;
  215 +}
4 foundation/foundation-tests.ts
... ... @@ -1,5 +1,5 @@
1   -/// <reference path="../jquery/jquery-1.9.d.ts" />
2   -/// <reference path="foundation-3.2.d.ts" />
  1 +/// <reference path="../jquery/jquery.d.ts" />
  2 +/// <reference path="foundation.d.ts" />
3 3
4 4 function test_orbit() {
5 5 $("#featured").orbit();
2  foundation/foundation.d.ts
@@ -4,7 +4,7 @@
4 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped
5 5
6 6
7   -/// <reference path="../jquery/jquery-1.9.d.ts"/>
  7 +/// <reference path="../jquery/jquery.d.ts"/>
8 8
9 9 interface OrbitOptions {
10 10 animation?: string;
4 hammerjs/hammerjs-tests.ts
... ... @@ -1,5 +1,5 @@
1   -/// <reference path="../jquery/jquery-1.9.d.ts"/>
2   -/// <reference path="hammerjs-0.6.d.ts" />
  1 +/// <reference path="../jquery/jquery.d.ts"/>
  2 +/// <reference path="hammerjs.d.ts" />
3 3
4 4 var hammer = new Hammer(document.getElementById("container"));
5 5 hammer.ondragstart = function (ev) { };
2  hammerjs/hammerjs.d.ts
@@ -4,7 +4,7 @@
4 4 // Definitions: https://github.com/borisyankov/DefinitelyTyped
5 5
6 6
7   -/// <reference path="../jquery/jquery-1.9.d.ts"/>
  7 +/// <reference path="../jquery/jquery.d.ts"/>
8 8
9 9 interface HammerOptions {
10 10 prevent_default?: bool;
2  handlebars/handlebars-tests.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="handlebars-1.0.d.ts" />
  1 +/// <reference path="handlebars.d.ts" />
2 2
3 3 var context = {
4 4 author: { firstName: "Alan", lastName: "Johnson" },
199 highcharts/highcharts-test.ts
... ... @@ -1,100 +1,99 @@
1   -/// <reference path="highcharts-2.3.d.ts" />
2   -
3   -
4   -
5   -var animate: HighchartsBoolOrAnimation;
6   -animate = true;
7   -animate = { duration: 200, easing: "linear" };
8   -
9   -
10   -var gradient: HighchartsColorOrGradient;
11   -gradient = {
12   - linearGradient: { x0: 0, y0: 0, x1: 500, y1: 500 },
13   - stops: [
14   - [0, 'rgb(255, 255, 255)'],
15   - [1, 'rgb(200, 200, 255)']
16   - ]
17   -}
18   -
19   -var color = "#fcfcff";
20   -
21   -var backgound: HighchartsColorOrGradient;
22   -
23   -backgound = gradient;
24   -backgound = color;
25   -
26   -var chart1 = new Highcharts.Chart({
27   - chart: {
28   - renderTo: "container"
29   - },
30   - xAxis: [{
31   - }],
32   - series: [{
33   - data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
34   - }]
35   -});
36   -
37   -var chart2 = new Highcharts.Chart({
38   - chart: {
39   - renderTo: 'container',
40   - width: 400,
41   - height: 400,
42   - spacingRight: 20
43   - },
44   - xAxis: [{
45   - type: 'logarithmic',
46   - min: 1,
47   - max: 1000,
48   - endOnTick: true,
49   - tickInterval: 1,
50   - minorTickInterval: 0.1,
51   - gridLineWidth: 1
52   - }],
53   - yAxis: [{
54   - type: 'logarithmic',
55   - min: 1,
56   - max: 1000,
57   - tickInterval: 1,
58   - minorTickInterval: 0.1,
59   - title: {
60   - text: null
61   - }
62   - }],
63   - legend: {
64   - enabled: false
65   - },
66   - series: [{
67   - data: [
68   - [550, 870], [738, 362], [719, 711], [547, 665], [595, 197], [332, 144],
69   - [581, 555], [196, 862], [6, 837], [400, 924], [888, 148], [785, 730],
70   - [374, 358], [440, 69], [704, 318], [646, 506], [238, 662], [233, 56],
71   - [622, 572], [563, 903], [744, 672], [904, 646], [390, 325], [536, 491],
72   - [676, 186], [467, 145], [790, 114], [437, 793], [853, 243], [947, 196],
73   - [395, 728], [527, 148], [516, 675], [632, 562], [52, 552], [605, 580],
74   - [790, 865], [156, 87], [584, 290], [339, 921], [383, 633], [106, 373],
75   - [762, 863], [424, 149], [608, 959], [574, 711], [468, 664], [268, 77],
76   - [894, 850], [171, 102], [203, 565], [592, 549], [86, 486], [526, 244],
77   - [323, 575], [488, 842], [401, 618], [148, 43], [828, 314], [554, 711],
78   - [685, 868], [387, 435], [469, 828], [623, 506], [436, 184], [450, 156],
79   - [805, 517], [465, 997], [728, 802], [231, 438], [935, 438], [519, 856],
80   - [378, 579], [73, 765], [223, 219], [359, 317], [686, 742], [17, 790],
81   - [20, 35], [410, 644], [984, 325], [503, 882], [900, 187], [578, 968],
82   - [27, 718], [355, 704], [395, 332], [641, 548], [964, 374], [215, 472],
83   - [323, 66], [882, 542], [671, 327], [650, 193], [828, 632], [760, 929],
84   - [607, 335], [928, 826], [462, 598], [631, 411]
85   - ],
86   - type: 'scatter'
87   - }]
88   -});
89   -
90   -chart1.exportChart(null, {
91   - chart: {
92   - backgroundColor: '#FFFFFF'
93   - }
94   -});
95   -
96   -
97   -var div: HTMLDivElement;
98   -var r = new Highcharts.Renderer(div, 20, 30);
99   -var box = r.text("Hello", 10, 10).getBBox();
100   -
  1 +/// <reference path="highcharts.d.ts" />
  2 +
  3 +
  4 +var animate: HighchartsBoolOrAnimation;
  5 +animate = true;
  6 +animate = { duration: 200, easing: "linear" };
  7 +
  8 +
  9 +var gradient: HighchartsColorOrGradient;
  10 +gradient = {
  11 + linearGradient: { x0: 0, y0: 0, x1: 500, y1: 500 },
  12 + stops: [
  13 + [0, 'rgb(255, 255, 255)'],
  14 + [1, 'rgb(200, 200, 255)']
  15 + ]
  16 +}
  17 +
  18 +var color = "#fcfcff";
  19 +
  20 +var backgound: HighchartsColorOrGradient;
  21 +
  22 +backgound = gradient;
  23 +backgound = color;
  24 +
  25 +var chart1 = new Highcharts.Chart({
  26 + chart: {
  27 + renderTo: "container"
  28 + },
  29 + xAxis: [{
  30 + }],
  31 + series: [{
  32 + data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
  33 + }]
  34 +});
  35 +
  36 +var chart2 = new Highcharts.Chart({
  37 + chart: {
  38 + renderTo: 'container',
  39 + width: 400,
  40 + height: 400,
  41 + spacingRight: 20
  42 + },
  43 + xAxis: [{
  44 + type: 'logarithmic',
  45 + min: 1,
  46 + max: 1000,
  47 + endOnTick: true,
  48 + tickInterval: 1,
  49 + minorTickInterval: 0.1,
  50 + gridLineWidth: 1
  51 + }],
  52 + yAxis: [{
  53 + type: 'logarithmic',
  54 + min: 1,
  55 + max: 1000,
  56 + tickInterval: 1,
  57 + minorTickInterval: 0.1,
  58 + title: {
  59 + text: null
  60 + }
  61 + }],
  62 + legend: {
  63 + enabled: false
  64 + },
  65 + series: [{
  66 + data: [
  67 + [550, 870], [738, 362], [719, 711], [547, 665], [595, 197], [332, 144],
  68 + [581, 555], [196, 862], [6, 837], [400, 924], [888, 148], [785, 730],
  69 + [374, 358], [440, 69], [704, 318], [646, 506], [238, 662], [233, 56],
  70 + [622, 572], [563, 903], [744, 672], [904, 646], [390, 325], [536, 491],
  71 + [676, 186], [467, 145], [790, 114], [437, 793], [853, 243], [947, 196],
  72 + [395, 728], [527, 148], [516, 675], [632, 562], [52, 552], [605, 580],
  73 + [790, 865], [156, 87], [584, 290], [339, 921], [383, 633], [106, 373],
  74 + [762, 863], [424, 149], [608, 959], [574, 711], [468, 664], [268, 77],
  75 + [894, 850], [171, 102], [203, 565], [592, 549], [86, 486], [526, 244],
  76 + [323, 575], [488, 842], [401, 618], [148, 43], [828, 314], [554, 711],
  77 + [685, 868], [387, 435], [469, 828], [623, 506], [436, 184], [450, 156],
  78 + [805, 517], [465, 997], [728, 802], [231, 438], [935, 438], [519, 856],
  79 + [378, 579], [73, 765], [223, 219], [359, 317], [686, 742], [17, 790],
  80 + [20, 35], [410, 644], [984, 325], [503, 882], [900, 187], [578, 968],
  81 + [27, 718], [355, 704], [395, 332], [641, 548], [964, 374], [215, 472],
  82 + [323, 66], [882, 542], [671, 327], [650, 193], [828, 632], [760, 929],
  83 + [607, 335], [928, 826], [462, 598], [631, 411]
  84 + ],
  85 + type: 'scatter'
  86 + }]
  87 +});
  88 +
  89 +chart1.exportChart(null, {
  90 + chart: {
  91 + backgroundColor: '#FFFFFF'
  92 + }
  93 +});
  94 +
  95 +
  96 +var div: HTMLDivElement;
  97 +var r = new Highcharts.Renderer(div, 20, 30);
  98 +var box = r.text("Hello", 10, 10).getBBox();
  99 +
2  history/history-tests.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="history-1.7.d.ts" />
  1 +/// <reference path="history.d.ts" />
2 2
3 3 if (!History.enabled) {
4 4 return false;
2  history/history.d.ts
@@ -22,4 +22,4 @@ interface History {
22 22 go(X);
23 23 log(...messages: any[]);
24 24 debug(...messages: any[]);
25   -}
  25 +}
2  humane/humane-tests.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="humane-3.0.d.ts" />
  1 +/// <reference path="humane.d.ts" />
2 2
3 3 humane.log("Welcome Back");
4 4 humane.log(["List","of","Items"]);
2  i18next/i18next.d.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="lib/jquery.d.ts" />
  1 +/// <reference path="../jquery/jquery.d.ts" />
2 2
3 3 // Type definitions for i18next (v1.5.10 incl. jQuery)
4 4 // Project: http://i18next.com
2  i18next/tests/i18next.d.tests.ts
... ... @@ -1,6 +1,6 @@
1 1 /// <reference path="../lib/sinon.d.ts" />
2 2 /// <reference path="../lib/mocha.d.ts" />
3   -/// <reference path="../lib/jquery.d.ts" />
  3 +/// <reference path="../jquery/jquery.d.ts" />
4 4 /// <reference path="../i18next.d.ts" />
5 5
6 6 // declarations for expect.js
2  impress/impress-tests.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="impress-0.5.d.ts" />
  1 +/// <reference path="impress.d.ts" />
2 2
3 3 impress().init();
4 4
2  iscroll/iscroll-tests.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="iscroll-4.2.d.ts" />
  1 +/// <reference path="iscroll.d.ts" />
2 2
3 3 var myScroll1 = new iScroll('wrapper');
4 4 var myScroll2 = new iScroll('wrapper', { hScrollbar: false, vScrollbar: false });
2  jasmine/jasmine-tests.ts
... ... @@ -1,4 +1,4 @@
1   -/// <reference path="jasmine-1.2.d.ts" />
  1 +/// <reference path="jasmine.d.ts" />
2 2
3 3 describe("A suite", () => {
4 4 it("contains spec with an expectation", () => {
74 jquery.cookie/jquery.cookie-tests.ts
... ... @@ -1,37 +1,37 @@
62 jquery.cookie/jquery.cookie.d.ts
... ... @@ -1,32 +1,32 @@