Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update reference paths

  • Loading branch information...
commit 209d95071a54fcd6822dd45dfdcddbb5e549afdd 1 parent a427049
@borisyankov authored
Showing with 928 additions and 925 deletions.
  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
View
2  angularjs/angular-cookies.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="angular-1.0.d.ts" />
+/// <reference path="angular.d.ts" />
///////////////////////////////////////////////////////////////////////////////
// ngCookies module (angular-cookies.js)
View
2  angularjs/angular-mocks.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="angular-1.0.d.ts" />
+/// <reference path="angular.d.ts" />
///////////////////////////////////////////////////////////////////////////////
// ngMock module (angular-mocks.js)
View
2  angularjs/angular-resource.d.ts
@@ -3,7 +3,7 @@
// Definitions by: Diego Vilar <http://github.com/diegovilar>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="angular-1.0.d.ts" />
+/// <reference path="angular.d.ts" />
///////////////////////////////////////////////////////////////////////////////
View
2  angularjs/angular-sanitize.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="angular-1.0.d.ts" />
+/// <reference path="angular.d.ts" />
///////////////////////////////////////////////////////////////////////////////
// ngSanitize module (angular-sanitize.js)
View
2  angularjs/angular.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts" />
+/// <reference path="../jquery/jquery.d.ts" />
declare var angular: ng.IAngularStatic;
View
2  async/async-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="async-0.1.d.ts" />
+/// <reference path="async.d.ts" />
var fs, path;
View
2  backbone/backbone-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="backbone-0.9.d.ts" />
+/// <reference path="backbone.d.ts" />
declare var _, $;
View
2  backbone/backbone.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts" />
+/// <reference path="../jquery/jquery.d.ts" />
declare module Backbone {
View
2  bootstrap.datepicker/bootstrap.datepicker-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
+/// <reference path="../jquery/jquery.d.ts"/>
/// <reference path="bootstrap.datepicker.d.ts"/>
function tests_simple() {
View
2  bootstrap.datepicker/bootstrap.datepicker.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
+/// <reference path="../jquery/jquery.d.ts"/>
interface DatepickerOptions {
format?: string;
View
4 bootstrap/bootstrap-tests.ts
@@ -1,5 +1,5 @@
-/// <reference path="../jquery/jquery-1.9.d.ts" />
-/// <reference path="bootstrap-2.1.d.ts" />
+/// <reference path="../jquery/jquery.d.ts" />
+/// <reference path="bootstrap.d.ts" />
$('body').off('.data-api');
$('body').off('.alert.data-api');
View
2  bootstrap/bootstrap.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
+/// <reference path="../jquery/jquery.d.ts"/>
interface ModalOptions {
backdrop?: bool;
View
2  breeze/breeze.d.ts
@@ -3,7 +3,7 @@
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-// Updated Jan 14 2011 - Jay Traband ( www.ideablade.com).
+// Updated Jan 14 2011 - Jay Traband (www.ideablade.com)
declare module BreezeCore {
View
2  chosen/chosen-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="chosen-0.9.d.ts" />
+/// <reference path="chosen.jquery.d.ts" />
$(".chzn-select").chosen({ no_results_text: "No results matched" });
$("#form_field").chosen().change();
View
2  chosen/chosen.jquery.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
+/// <reference path="../jquery/jquery.d.ts"/>
interface ChosenOptions {
allow_single_deselect?: bool;
View
2  codemirror/codemirror-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="codemirror-3.0.d.ts" />
+/// <reference path="codemirror.d.ts" />
var myCodeMirror = CodeMirror(document.body);
View
2  easeljs/easeljs-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="easeljs-0.5.d.ts" />
+/// <reference path="easeljs.d.ts" />
function test_simple() {
var canvas = document.getElementById('canvas');
View
2  easeljs/easeljs.d.ts
@@ -11,7 +11,7 @@
*/
-/// <reference path="../tweenjs/tweenjs-0.3.d.ts" />
+/// <reference path="../tweenjs/tweenjs.d.ts" />
// rename the native MouseEvent, to avoid conflit with createjs's MouseEvent
interface NativeMouseEvent extends MouseEvent {
View
4 ember/ember-tests.ts
@@ -1,5 +1,5 @@
-/// <reference path="ember-1.0.d.ts" />
-/// <reference path="handlebars-1.0.d.ts" />
+/// <reference path="ember.d.ts" />
+/// <reference path="../handlebars/handlebars.d.ts" />
var App;
View
2  express/express-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="express-3.0.d.ts" />
+/// <reference path="express.d.ts" />
declare var _, $;
View
2  express/express.d.ts
@@ -19,7 +19,7 @@ connect.session({})
*/
-///<reference path='../node/node-0.8.d.ts' />
+///<reference path='../node/node.d.ts' />
// do not reference this. use module('express') instead
declare module _express {
View
4 fancybox/fancybox-tests.ts
@@ -1,5 +1,5 @@
-/// <reference path="jquery-1.8.d.ts" />
-/// <reference path="fancybox-2.1.d.ts" />
+/// <reference path="../jquery/jquery.d.ts" />
+/// <reference path="fancybox.d.ts" />
$('.fancybox').fancybox();
$('.fancybox').fancybox({
View
4 fancybox/fancybox.d.ts
@@ -4,6 +4,8 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
+/// <reference path="../jquery/jquery.d.ts" />
+
interface FancyboxOptions {
padding?: any; // number or []
margin?: any; // number or []
@@ -87,7 +89,7 @@ interface FancyboxMethods {
showLoading();
hideLoading();
- (options?: FancyboxOptions): void;
+ (options: FancyboxOptions): void;
(selector: string, options?: FancyboxOptions): void;
(selector: JQuery, options?: FancyboxOptions): void;
(group?: any[], options?: FancyboxOptions): void;
View
430 flot/jquery.flot.d.ts
@@ -1,215 +1,215 @@
-/// <reference path="jquery.d.ts" />
-
-module jquery.flot {
- interface plotOptions {
- colors?: any[];
- series?: seriesOptions;
- legend?: legendOptions;
- xaxis?: axisOptions;
- yaxis?: axisOptions;
- xaxes?: axisOptions[];
- yaxes?: axisOptions[];
- grid?: gridOptions;
- interfaction?: interaction;
- hooks?: hooks;
- }
-
- interface hooks {
- processOptions: { (plot: plot, options: plotOptions): void; } [];
- processRawData: { (plot: plot, series: dataSeries, data: any[], datapoints: datapoints): void; }[];
- processDatapoints: { (plot: plot, series: dataSeries, datapoints: datapoints): void; }[];
- processOffset: { (plot: plot, offset: canvasPoint): void; }[];
- drawBackground: { (plot: plot, context: CanvasRenderingContext2D): void; }[];
- drawSeries: { (plot: plot, context: CanvasRenderingContext2D, series: dataSeries): void; }[];
- draw: { (plot: plot, context: CanvasRenderingContext2D): void; }[];
- bindEvents: { (plot: plot, eventHolder: JQuery): void; }[];
- drawOverlay: { (plot: plot, context: CanvasRenderingContext2D): void; }[];
- shutdown: { (plot: plot, eventHolder: JQuery): void; }[];
- }
-
- interface interaction {
- redrawOverlayInterval?: number;
- }
-
- interface gridOptions {
- show?: bool;
- aboveData?: bool;
- color?: any; // color
- backgroundColor?: any; //color/gradient or null
- margin?: any; // number or margin object
- labelMargin?: number;
- axisMargin?: number;
- markings?: any; //array of markings or (fn: axes -> array of markings)
- borderWidth: number;
- borderColor?: any; // color or null
- minBorderMargin?: number; // or null
- clickable?: bool;
- hoverable?: bool;
- autoHighlight?: bool;
- mouseActiveRadius?: number;
- tickColor?: any;
- markingsColor?: any;
- markingsLineWidth?: number;
- }
-
- interface legendOptions {
- show?: bool;
- labelFormatter?: (label: string, series: any) => string; // null or (fn: string, series object -> string)
- labelBoxBorderColor?: any; //color
- noColumns?: number;
- position?: string; //"ne" or "nw" or "se" or "sw"
- margin?: any; //number of pixels or [x margin, y margin]
- backgroundColor?: any; //null or color
- backgroundOpacity?: number; // between 0 and 1
- container?: JQuery; // null or jQuery object/DOM element/jQuery expression
- sorted?: any; //null/false, true, "ascending", "descending" or a comparator
- }
-
- interface seriesOptions {
- color?: number;
- label?: string;
- lines?: linesOptions;
- bars?: barsOptions;
- points?: pointsOptions;
- xaxis?: number;
- yaxis?: number;
- clickable?: bool;
- hoverable?: bool;
- shadowSize?: number;
- highlightColor?: any;
- }
-
- interface dataSeries extends seriesOptions {
- data: any[];
- }
-
- interface axisOptions {
- show?: bool; // null or true/false
- position?: string; // "bottom" or "top" or "left" or "right"
-
- color?: any; // null or color spec
- tickColor?: any; // null or color spec
- font?: any; // null or font spec object
-
- min?: number;
- max?: number;
- autoscaleMargin?: number;
-
- transform?: (v: number) => number; // null or fn: number -> number
- inverseTransform?: (v: number) => number; // null or fn: number -> number
-
- ticks?: any; // null or number or ticks array or (fn: axis -> ticks array)
- tickSize?: any; // number or array
- minTickSize?: any; // number or array
- tickFormatter?: (t: number) => string; // (fn: number, object -> string) or string
- tickDecimals?: number;
-
- labelWidth?: number;
- labelHeight?: number;
- reserveSpace?: bool;
-
- tickLength?: number;
-
- alignTicksWithAxis?: number;
- }
-
- interface seriesTypeBase {
- show?: bool;
- lineWidth?: number;
- fill?: any; //boolean or number
- fillColor?: any; //null or color/gradient
- }
-
- interface linesOptions extends seriesTypeBase {
- steps?: bool;
- }
-
- interface barsOptions extends seriesTypeBase {
- barWidth?: number;
- align?: string;
- horizontal?: bool;
- }
-
- interface pointsOptions extends seriesTypeBase {
- radius?: number;
- symbol?: any;
- }
-
- interface gradient {
- colors: any[];
- }
-
- interface item {
- datapoint: number[]; // the point, e.g. [0, 2]
- dataIndex: number; // the index of the point in the data array
- series: dataSeries; //the series object
- seriesIndex: number; //the index of the series
- pageX: number;
- pageY: number; //the global screen coordinates of the point
- }
-
- interface datapoints {
- points: number[];
- pointsize: number;
- format: datapointFormat[];
- }
-
- interface datapointFormat {
- x?: bool;
- y?: bool;
- number: bool;
- required: bool;
- defaultValue?: number;
- }
-
- interface point {
- x: number;
- y: number;
- }
-
- interface canvasPoint {
- top: number;
- left: number;
- bottom?: number;
- right?: number;
- }
-
- interface axes {
- xaxis: axis;
- yaxis: axis;
- x2axis?: axis;
- y2axis?: axis;
- }
-
- interface axis extends axisOptions {
- p2c(point):canvasPoint;
- c2p(canvasPoint):point;
- }
-
- interface plot {
- highlight(series: dataSeries, datapoint: item);
- unhightlight();
- unhighlight(series: dataSeries, datapoint: item);
- setData(data: any);
- setupGrid();
- draw();
- triggerRedrawOverlay();
- width();
- height();
- offset();
- pointOffset(point: point);
- resize();
- shutdown();
- getData(): dataSeries[];
- getAxes(): axes;
- getPlaceholder(): JQuery;
- getCanvas(): HTMLCanvasElement;
- getPlotOffset(): canvasPoint;
- getOptions(): plotOptions;
- }
-}
-
-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;
-}
+/// <reference path="../jquery/jquery.d.ts" />
+
+module jquery.flot {
+ interface plotOptions {
+ colors?: any[];
+ series?: seriesOptions;
+ legend?: legendOptions;
+ xaxis?: axisOptions;
+ yaxis?: axisOptions;
+ xaxes?: axisOptions[];
+ yaxes?: axisOptions[];
+ grid?: gridOptions;
+ interfaction?: interaction;
+ hooks?: hooks;
+ }
+
+ interface hooks {
+ processOptions: { (plot: plot, options: plotOptions): void; } [];
+ processRawData: { (plot: plot, series: dataSeries, data: any[], datapoints: datapoints): void; }[];
+ processDatapoints: { (plot: plot, series: dataSeries, datapoints: datapoints): void; }[];
+ processOffset: { (plot: plot, offset: canvasPoint): void; }[];
+ drawBackground: { (plot: plot, context: CanvasRenderingContext2D): void; }[];
+ drawSeries: { (plot: plot, context: CanvasRenderingContext2D, series: dataSeries): void; }[];
+ draw: { (plot: plot, context: CanvasRenderingContext2D): void; }[];
+ bindEvents: { (plot: plot, eventHolder: JQuery): void; }[];
+ drawOverlay: { (plot: plot, context: CanvasRenderingContext2D): void; }[];
+ shutdown: { (plot: plot, eventHolder: JQuery): void; }[];
+ }
+
+ interface interaction {
+ redrawOverlayInterval?: number;
+ }
+
+ interface gridOptions {
+ show?: bool;
+ aboveData?: bool;
+ color?: any; // color
+ backgroundColor?: any; //color/gradient or null
+ margin?: any; // number or margin object
+ labelMargin?: number;
+ axisMargin?: number;
+ markings?: any; //array of markings or (fn: axes -> array of markings)
+ borderWidth: number;
+ borderColor?: any; // color or null
+ minBorderMargin?: number; // or null
+ clickable?: bool;
+ hoverable?: bool;
+ autoHighlight?: bool;
+ mouseActiveRadius?: number;
+ tickColor?: any;
+ markingsColor?: any;
+ markingsLineWidth?: number;
+ }
+
+ interface legendOptions {
+ show?: bool;
+ labelFormatter?: (label: string, series: any) => string; // null or (fn: string, series object -> string)
+ labelBoxBorderColor?: any; //color
+ noColumns?: number;
+ position?: string; //"ne" or "nw" or "se" or "sw"
+ margin?: any; //number of pixels or [x margin, y margin]
+ backgroundColor?: any; //null or color
+ backgroundOpacity?: number; // between 0 and 1
+ container?: JQuery; // null or jQuery object/DOM element/jQuery expression
+ sorted?: any; //null/false, true, "ascending", "descending" or a comparator
+ }
+
+ interface seriesOptions {
+ color?: number;
+ label?: string;
+ lines?: linesOptions;
+ bars?: barsOptions;
+ points?: pointsOptions;
+ xaxis?: number;
+ yaxis?: number;
+ clickable?: bool;
+ hoverable?: bool;
+ shadowSize?: number;
+ highlightColor?: any;
+ }
+
+ interface dataSeries extends seriesOptions {
+ data: any[];
+ }
+
+ interface axisOptions {
+ show?: bool; // null or true/false
+ position?: string; // "bottom" or "top" or "left" or "right"
+
+ color?: any; // null or color spec
+ tickColor?: any; // null or color spec
+ font?: any; // null or font spec object
+
+ min?: number;
+ max?: number;
+ autoscaleMargin?: number;
+
+ transform?: (v: number) => number; // null or fn: number -> number
+ inverseTransform?: (v: number) => number; // null or fn: number -> number
+
+ ticks?: any; // null or number or ticks array or (fn: axis -> ticks array)
+ tickSize?: any; // number or array
+ minTickSize?: any; // number or array
+ tickFormatter?: (t: number) => string; // (fn: number, object -> string) or string
+ tickDecimals?: number;
+
+ labelWidth?: number;
+ labelHeight?: number;
+ reserveSpace?: bool;
+
+ tickLength?: number;
+
+ alignTicksWithAxis?: number;
+ }
+
+ interface seriesTypeBase {
+ show?: bool;
+ lineWidth?: number;
+ fill?: any; //boolean or number
+ fillColor?: any; //null or color/gradient
+ }
+
+ interface linesOptions extends seriesTypeBase {
+ steps?: bool;
+ }
+
+ interface barsOptions extends seriesTypeBase {
+ barWidth?: number;
+ align?: string;
+ horizontal?: bool;
+ }
+
+ interface pointsOptions extends seriesTypeBase {
+ radius?: number;
+ symbol?: any;
+ }
+
+ interface gradient {
+ colors: any[];
+ }
+
+ interface item {
+ datapoint: number[]; // the point, e.g. [0, 2]
+ dataIndex: number; // the index of the point in the data array
+ series: dataSeries; //the series object
+ seriesIndex: number; //the index of the series
+ pageX: number;
+ pageY: number; //the global screen coordinates of the point
+ }
+
+ interface datapoints {
+ points: number[];
+ pointsize: number;
+ format: datapointFormat[];
+ }
+
+ interface datapointFormat {
+ x?: bool;
+ y?: bool;
+ number: bool;
+ required: bool;
+ defaultValue?: number;
+ }
+
+ interface point {
+ x: number;
+ y: number;
+ }
+
+ interface canvasPoint {
+ top: number;
+ left: number;
+ bottom?: number;
+ right?: number;
+ }
+
+ interface axes {
+ xaxis: axis;
+ yaxis: axis;
+ x2axis?: axis;
+ y2axis?: axis;
+ }
+
+ interface axis extends axisOptions {
+ p2c(point):canvasPoint;
+ c2p(canvasPoint):point;
+ }
+
+ interface plot {
+ highlight(series: dataSeries, datapoint: item);
+ unhightlight();
+ unhighlight(series: dataSeries, datapoint: item);
+ setData(data: any);
+ setupGrid();
+ draw();
+ triggerRedrawOverlay();
+ width();
+ height();
+ offset();
+ pointOffset(point: point);
+ resize();
+ shutdown();
+ getData(): dataSeries[];
+ getAxes(): axes;
+ getPlaceholder(): JQuery;
+ getCanvas(): HTMLCanvasElement;
+ getPlotOffset(): canvasPoint;
+ getOptions(): plotOptions;
+ }
+}
+
+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;
+}
View
4 foundation/foundation-tests.ts
@@ -1,5 +1,5 @@
-/// <reference path="../jquery/jquery-1.9.d.ts" />
-/// <reference path="foundation-3.2.d.ts" />
+/// <reference path="../jquery/jquery.d.ts" />
+/// <reference path="foundation.d.ts" />
function test_orbit() {
$("#featured").orbit();
View
2  foundation/foundation.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
+/// <reference path="../jquery/jquery.d.ts"/>
interface OrbitOptions {
animation?: string;
View
4 hammerjs/hammerjs-tests.ts
@@ -1,5 +1,5 @@
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
-/// <reference path="hammerjs-0.6.d.ts" />
+/// <reference path="../jquery/jquery.d.ts"/>
+/// <reference path="hammerjs.d.ts" />
var hammer = new Hammer(document.getElementById("container"));
hammer.ondragstart = function (ev) { };
View
2  hammerjs/hammerjs.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
+/// <reference path="../jquery/jquery.d.ts"/>
interface HammerOptions {
prevent_default?: bool;
View
2  handlebars/handlebars-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="handlebars-1.0.d.ts" />
+/// <reference path="handlebars.d.ts" />
var context = {
author: { firstName: "Alan", lastName: "Johnson" },
View
199 highcharts/highcharts-test.ts
@@ -1,100 +1,99 @@
-/// <reference path="highcharts-2.3.d.ts" />
-
-
-
-var animate: HighchartsBoolOrAnimation;
-animate = true;
-animate = { duration: 200, easing: "linear" };
-
-
-var gradient: HighchartsColorOrGradient;
-gradient = {
- linearGradient: { x0: 0, y0: 0, x1: 500, y1: 500 },
- stops: [
- [0, 'rgb(255, 255, 255)'],
- [1, 'rgb(200, 200, 255)']
- ]
-}
-
-var color = "#fcfcff";
-
-var backgound: HighchartsColorOrGradient;
-
-backgound = gradient;
-backgound = color;
-
-var chart1 = new Highcharts.Chart({
- chart: {
- renderTo: "container"
- },
- xAxis: [{
- }],
- series: [{
- 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]
- }]
-});
-
-var chart2 = new Highcharts.Chart({
- chart: {
- renderTo: 'container',
- width: 400,
- height: 400,
- spacingRight: 20
- },
- xAxis: [{
- type: 'logarithmic',
- min: 1,
- max: 1000,
- endOnTick: true,
- tickInterval: 1,
- minorTickInterval: 0.1,
- gridLineWidth: 1
- }],
- yAxis: [{
- type: 'logarithmic',
- min: 1,
- max: 1000,
- tickInterval: 1,
- minorTickInterval: 0.1,
- title: {
- text: null
- }
- }],
- legend: {
- enabled: false
- },
- series: [{
- data: [
- [550, 870], [738, 362], [719, 711], [547, 665], [595, 197], [332, 144],
- [581, 555], [196, 862], [6, 837], [400, 924], [888, 148], [785, 730],
- [374, 358], [440, 69], [704, 318], [646, 506], [238, 662], [233, 56],
- [622, 572], [563, 903], [744, 672], [904, 646], [390, 325], [536, 491],
- [676, 186], [467, 145], [790, 114], [437, 793], [853, 243], [947, 196],
- [395, 728], [527, 148], [516, 675], [632, 562], [52, 552], [605, 580],
- [790, 865], [156, 87], [584, 290], [339, 921], [383, 633], [106, 373],
- [762, 863], [424, 149], [608, 959], [574, 711], [468, 664], [268, 77],
- [894, 850], [171, 102], [203, 565], [592, 549], [86, 486], [526, 244],
- [323, 575], [488, 842], [401, 618], [148, 43], [828, 314], [554, 711],
- [685, 868], [387, 435], [469, 828], [623, 506], [436, 184], [450, 156],
- [805, 517], [465, 997], [728, 802], [231, 438], [935, 438], [519, 856],
- [378, 579], [73, 765], [223, 219], [359, 317], [686, 742], [17, 790],
- [20, 35], [410, 644], [984, 325], [503, 882], [900, 187], [578, 968],
- [27, 718], [355, 704], [395, 332], [641, 548], [964, 374], [215, 472],
- [323, 66], [882, 542], [671, 327], [650, 193], [828, 632], [760, 929],
- [607, 335], [928, 826], [462, 598], [631, 411]
- ],
- type: 'scatter'
- }]
-});
-
-chart1.exportChart(null, {
- chart: {
- backgroundColor: '#FFFFFF'
- }
-});
-
-
-var div: HTMLDivElement;
-var r = new Highcharts.Renderer(div, 20, 30);
-var box = r.text("Hello", 10, 10).getBBox();
-
+/// <reference path="highcharts.d.ts" />
+
+
+var animate: HighchartsBoolOrAnimation;
+animate = true;
+animate = { duration: 200, easing: "linear" };
+
+
+var gradient: HighchartsColorOrGradient;
+gradient = {
+ linearGradient: { x0: 0, y0: 0, x1: 500, y1: 500 },
+ stops: [
+ [0, 'rgb(255, 255, 255)'],
+ [1, 'rgb(200, 200, 255)']
+ ]
+}
+
+var color = "#fcfcff";
+
+var backgound: HighchartsColorOrGradient;
+
+backgound = gradient;
+backgound = color;
+
+var chart1 = new Highcharts.Chart({
+ chart: {
+ renderTo: "container"
+ },
+ xAxis: [{
+ }],
+ series: [{
+ 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]
+ }]
+});
+
+var chart2 = new Highcharts.Chart({
+ chart: {
+ renderTo: 'container',
+ width: 400,
+ height: 400,
+ spacingRight: 20
+ },
+ xAxis: [{
+ type: 'logarithmic',
+ min: 1,
+ max: 1000,
+ endOnTick: true,
+ tickInterval: 1,
+ minorTickInterval: 0.1,
+ gridLineWidth: 1
+ }],
+ yAxis: [{
+ type: 'logarithmic',
+ min: 1,
+ max: 1000,
+ tickInterval: 1,
+ minorTickInterval: 0.1,
+ title: {
+ text: null
+ }
+ }],
+ legend: {
+ enabled: false
+ },
+ series: [{
+ data: [
+ [550, 870], [738, 362], [719, 711], [547, 665], [595, 197], [332, 144],
+ [581, 555], [196, 862], [6, 837], [400, 924], [888, 148], [785, 730],
+ [374, 358], [440, 69], [704, 318], [646, 506], [238, 662], [233, 56],
+ [622, 572], [563, 903], [744, 672], [904, 646], [390, 325], [536, 491],
+ [676, 186], [467, 145], [790, 114], [437, 793], [853, 243], [947, 196],
+ [395, 728], [527, 148], [516, 675], [632, 562], [52, 552], [605, 580],
+ [790, 865], [156, 87], [584, 290], [339, 921], [383, 633], [106, 373],
+ [762, 863], [424, 149], [608, 959], [574, 711], [468, 664], [268, 77],
+ [894, 850], [171, 102], [203, 565], [592, 549], [86, 486], [526, 244],
+ [323, 575], [488, 842], [401, 618], [148, 43], [828, 314], [554, 711],
+ [685, 868], [387, 435], [469, 828], [623, 506], [436, 184], [450, 156],
+ [805, 517], [465, 997], [728, 802], [231, 438], [935, 438], [519, 856],
+ [378, 579], [73, 765], [223, 219], [359, 317], [686, 742], [17, 790],
+ [20, 35], [410, 644], [984, 325], [503, 882], [900, 187], [578, 968],
+ [27, 718], [355, 704], [395, 332], [641, 548], [964, 374], [215, 472],
+ [323, 66], [882, 542], [671, 327], [650, 193], [828, 632], [760, 929],
+ [607, 335], [928, 826], [462, 598], [631, 411]
+ ],
+ type: 'scatter'
+ }]
+});
+
+chart1.exportChart(null, {
+ chart: {
+ backgroundColor: '#FFFFFF'
+ }
+});
+
+
+var div: HTMLDivElement;
+var r = new Highcharts.Renderer(div, 20, 30);
+var box = r.text("Hello", 10, 10).getBBox();
+
View
2  history/history-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="history-1.7.d.ts" />
+/// <reference path="history.d.ts" />
if (!History.enabled) {
return false;
View
2  history/history.d.ts
@@ -22,4 +22,4 @@ interface History {
go(X);
log(...messages: any[]);
debug(...messages: any[]);
-}
+}
View
2  humane/humane-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="humane-3.0.d.ts" />
+/// <reference path="humane.d.ts" />
humane.log("Welcome Back");
humane.log(["List","of","Items"]);
View
2  i18next/i18next.d.ts
@@ -1,4 +1,4 @@
-/// <reference path="lib/jquery.d.ts" />
+/// <reference path="../jquery/jquery.d.ts" />
// Type definitions for i18next (v1.5.10 incl. jQuery)
// Project: http://i18next.com
View
2  i18next/tests/i18next.d.tests.ts
@@ -1,6 +1,6 @@
/// <reference path="../lib/sinon.d.ts" />
/// <reference path="../lib/mocha.d.ts" />
-/// <reference path="../lib/jquery.d.ts" />
+/// <reference path="../jquery/jquery.d.ts" />
/// <reference path="../i18next.d.ts" />
// declarations for expect.js
View
2  impress/impress-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="impress-0.5.d.ts" />
+/// <reference path="impress.d.ts" />
impress().init();
View
2  iscroll/iscroll-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="iscroll-4.2.d.ts" />
+/// <reference path="iscroll.d.ts" />
var myScroll1 = new iScroll('wrapper');
var myScroll2 = new iScroll('wrapper', { hScrollbar: false, vScrollbar: false });
View
2  jasmine/jasmine-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="jasmine-1.2.d.ts" />
+/// <reference path="jasmine.d.ts" />
describe("A suite", () => {
it("contains spec with an expectation", () => {
View
74 jquery.cookie/jquery.cookie-tests.ts
@@ -1,37 +1,37 @@
-///<reference path="../jquery/jquery-1.9.d.ts" />
-///<reference path="jquery.cookie.d.ts" />
-
-class TestObject {
- text: string;
- value: number;
-
- constructor (text: string, value: number) {
- this.text = text;
- this.value = value;
- }
-}
-
-class CookieOptions implements JQueryCookieOptions {
- expires: number;
- path: string;
- domain: string;
- secure: bool;
-}
-
-$.cookie("the_cookie", "the_value");
-
-console.log($.cookie("the_cookie"));
-
-var testObject = new TestObject("Hello World", 5);
-
-var cookieOptions = new CookieOptions();
-cookieOptions.path = "/";
-cookieOptions.domain = "jquery.com";
-
-$.cookie.json = true;
-
-$.cookie("test", testObject, cookieOptions);
-
-var result = <TestObject>$.cookie("test");
-
-console.log(result.text);
+///<reference path="../jquery/jquery.d.ts" />
+///<reference path="jquery.cookie.d.ts" />
+
+class TestObject {
+ text: string;
+ value: number;
+
+ constructor (text: string, value: number) {
+ this.text = text;
+ this.value = value;
+ }
+}
+
+class CookieOptions implements JQueryCookieOptions {
+ expires: number;
+ path: string;
+ domain: string;
+ secure: bool;
+}
+
+$.cookie("the_cookie", "the_value");
+
+console.log($.cookie("the_cookie"));
+
+var testObject = new TestObject("Hello World", 5);
+
+var cookieOptions = new CookieOptions();
+cookieOptions.path = "/";
+cookieOptions.domain = "jquery.com";
+
+$.cookie.json = true;
+
+$.cookie("test", testObject, cookieOptions);
+
+var result = <TestObject>$.cookie("test");
+
+console.log(result.text);
View
62 jquery.cookie/jquery.cookie.d.ts
@@ -1,32 +1,32 @@
-// Type definitions for jQuery Cookie Plugin 1.3
-// Project: https://github.com/carhartl/jquery-cookie
-// Definitions by: Roy Goode <https://github.com/RoyGoode/>
-// Definitions: https://github.com/borisyankov/DefinitelyTyped
-
-///<reference path="../jquery/jquery-1.9.d.ts" />
-
-
-interface JQueryCookieOptions {
- expires?: any;
- path?: string;
- domain?: string;
- secure?: bool;
-}
-
-interface JQueryCookieStatic {
- raw?: bool;
- json?: bool;
-
- (name: string): any;
- (name: string, value: string): void;
- (name: string, value: string, options: JQueryCookieOptions): void;
- (name: string, value: any): void;
- (name: string, value: any, options: JQueryCookieOptions): void;
-}
-
-interface JQueryStatic {
- cookie?: JQueryCookieStatic;
-
- removeCookie(name: string): bool;
- removeCookie(name: string, options: JQueryCookieOptions): bool;
+// Type definitions for jQuery Cookie Plugin 1.3
+// Project: https://github.com/carhartl/jquery-cookie
+// Definitions by: Roy Goode <https://github.com/RoyGoode/>
+// Definitions: https://github.com/borisyankov/DefinitelyTyped
+
+///<reference path="../jquery/jquery.d.ts" />
+
+
+interface JQueryCookieOptions {
+ expires?: any;
+ path?: string;
+ domain?: string;
+ secure?: bool;
+}
+
+interface JQueryCookieStatic {
+ raw?: bool;
+ json?: bool;
+
+ (name: string): any;
+ (name: string, value: string): void;
+ (name: string, value: string, options: JQueryCookieOptions): void;
+ (name: string, value: any): void;
+ (name: string, value: any, options: JQueryCookieOptions): void;
+}
+
+interface JQueryStatic {
+ cookie?: JQueryCookieStatic;
+
+ removeCookie(name: string): bool;
+ removeCookie(name: string, options: JQueryCookieOptions): bool;
}
View
2  jquery.dynatree/jquery.dynatree.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
+/// <reference path="../jquery/jquery.d.ts"/>
interface JQuery {
dynatree(options?: DynatreeOptions): DynaTree;
View
98 jquery.jnotify/jquery.jnotify-tests.ts
@@ -1,50 +1,50 @@
-/// <reference path='../jquery/jquery-1.9.d.ts'/>
-/// <reference path='jquery.jnotify-1.0.d.ts'/>
-
-$(document).ready(function () {
- $('#StatusBar').jnotifyInizialize({
- oneAtTime: true
- });
- $('#Notification')
- .jnotifyInizialize({
- oneAtTime: false,
- appendType: 'append'
- })
- .css({
- 'position': 'absolute',
- 'marginTop': '20px',
- 'right': '20px',
- 'width': '250px',
- 'z-index': '9999'
- });
- $('#addStatusBarMessage').click(function () {
- $('#StatusBar').jnotifyAddMessage({
- text: 'This is a non permanent message.',
- permanent: false,
- showIcon: false
- });
- });
-
- $('#addStatusBarError').click(function () {
- $('#StatusBar').jnotifyAddMessage({
- text: 'This is a permanent error.',
- permanent: true,
- type: 'error'
- });
- });
-
- $('#addNotificationMessage').click(function () {
- $('#Notification').jnotifyAddMessage({
- text: 'This is a non permanent message.',
- permanent: false
- });
- });
-
- $('#addNotificationError').click(function () {
- $('#Notification').jnotifyAddMessage({
- text: 'This is a permanent error.',
- permanent: true,
- type: 'error'
- });
- });
+/// <reference path='../jquery/jquery.d.ts'/>
+/// <reference path='jquery.jnotify.d.ts'/>
+
+$(document).ready(function () {
+ $('#StatusBar').jnotifyInizialize({
+ oneAtTime: true
+ });
+ $('#Notification')
+ .jnotifyInizialize({
+ oneAtTime: false,
+ appendType: 'append'
+ })
+ .css({
+ 'position': 'absolute',
+ 'marginTop': '20px',
+ 'right': '20px',
+ 'width': '250px',
+ 'z-index': '9999'
+ });
+ $('#addStatusBarMessage').click(function () {
+ $('#StatusBar').jnotifyAddMessage({
+ text: 'This is a non permanent message.',
+ permanent: false,
+ showIcon: false
+ });
+ });
+
+ $('#addStatusBarError').click(function () {
+ $('#StatusBar').jnotifyAddMessage({
+ text: 'This is a permanent error.',
+ permanent: true,
+ type: 'error'
+ });
+ });
+
+ $('#addNotificationMessage').click(function () {
+ $('#Notification').jnotifyAddMessage({
+ text: 'This is a non permanent message.',
+ permanent: false
+ });
+ });
+
+ $('#addNotificationError').click(function () {
+ $('#Notification').jnotifyAddMessage({
+ text: 'This is a permanent error.',
+ permanent: true,
+ type: 'error'
+ });
+ });
});
View
2  jquery.jnotify/jquery.jnotify.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path='../jquery/jquery-1.9.d.ts'/>
+/// <reference path='../jquery/jquery.d.ts'/>
interface JNotifyInitOptions {
oneAtTime?: bool;
View
88 jquery.timepicker/jquery.timepicker-tests.ts
@@ -1,45 +1,45 @@
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
-/// <reference path="jquery.timepicker-0.3.d.ts"/>
-
-var beforeShowCallback, onSelectCallback, onCloseCallback, onHourShow, onMinuteShow;
-$('#timepicker').timepicker({
- timeSeparator: ':',
- showLeadingZero: true,
- showMinutesLeadingZero: true,
- showPeriod: false,
- showPeriodLabels: true,
- periodSeparator: ' ',
- altField: '#alternate_input',
- defaultTime: '12:34',
- showOn: 'focus',
- button: null,
- hourText: 'Hour',
- minuteText: 'Minute',
- amPmText: ['AM', 'PM'],
-
- myPosition: 'left top',
- atPosition: 'left bottom',
- beforeShow: beforeShowCallback,
- onSelect: onSelectCallback,
- onClose: onCloseCallback,
- onHourShow: onHourShow,
- onMinuteShow: onMinuteShow,
- hours: {
- starts: 0,
- ends: 23
- },
- minutes: {
- starts: 0,
- ends: 55,
- interval: 5
- },
- rows: 4,
- showHours: true,
- showMinutes: true,
- showCloseButton: false,
- closeButtonText: 'Done',
- showNowButton: false,
- nowButtonText: 'Now',
- showDeselectButton: false,
- deselectButtonText: 'Deselect'
+/// <reference path="../jquery/jquery.d.ts"/>
+/// <reference path="jquery.timepicker.d.ts"/>
+
+var beforeShowCallback, onSelectCallback, onCloseCallback, onHourShow, onMinuteShow;
+$('#timepicker').timepicker({
+ timeSeparator: ':',
+ showLeadingZero: true,
+ showMinutesLeadingZero: true,
+ showPeriod: false,
+ showPeriodLabels: true,
+ periodSeparator: ' ',
+ altField: '#alternate_input',
+ defaultTime: '12:34',
+ showOn: 'focus',
+ button: null,
+ hourText: 'Hour',
+ minuteText: 'Minute',
+ amPmText: ['AM', 'PM'],
+
+ myPosition: 'left top',
+ atPosition: 'left bottom',
+ beforeShow: beforeShowCallback,
+ onSelect: onSelectCallback,
+ onClose: onCloseCallback,
+ onHourShow: onHourShow,
+ onMinuteShow: onMinuteShow,
+ hours: {
+ starts: 0,
+ ends: 23
+ },
+ minutes: {
+ starts: 0,
+ ends: 55,
+ interval: 5
+ },
+ rows: 4,
+ showHours: true,
+ showMinutes: true,
+ showCloseButton: false,
+ closeButtonText: 'Done',
+ showNowButton: false,
+ nowButtonText: 'Now',
+ showDeselectButton: false,
+ deselectButtonText: 'Deselect'
});
View
4 jquery.timepicker/jquery.timepicker.d.ts
@@ -3,8 +3,8 @@
// Definitions by: https://github.com/anwarjaved
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
-/// <reference path="../jqueryui/jqueryui-1.9.d.ts"/>
+/// <reference path="../jquery/jquery.d.ts"/>
+/// <reference path="../jqueryui/jqueryui.d.ts"/>
interface TimePickerHour {
starts?: number; // first displayed hour
View
186 jquery.transit/jquery.transit-tests.ts
@@ -1,93 +1,93 @@
-///<reference path="../jquery/jquery-1.9.d.ts" />
-///<reference path="jquery.transit.d.ts" />
-
-
-class TransitOptions implements JQueryTransitOptions {
- opacity: number;
- duration: number;
- delay: number;
- easing: string;
- complete: () => void;
- scale: any;
-}
-
-$(document).ready(function () {
- test_opacity();
- test_scale();
- test_duration();
- // Wait for all tests to complete and report results
- setTimeout(Assert.Results, 2000);
-});
-
-class Assert {
- static totalTests: number = 0;
- static passedTests: number = 0;
-
- static Results() {
- console.log('Tests succeeded - ' + passedTests + '/' + totalTests + '; Tests failed - ' + (totalTests - passedTests) + '/' + totalTests);
- }
-
- static AssertionFailed(actual: any, expected: any, test: string) {
- console.log((test || '') + ' assertion failed -- expected ' + expected.toString() + '; actual ' + actual.toString());
- }
-
- static Equal(actual: any, expected: any, test?: string) {
- totalTests++;
- if (actual === expected) {
- passedTests++;
- return;
- }
- AssertionFailed(actual, expected, test);
- }
-
- static NotEqual(actual: any, expected: any, test?: string) {
- totalTests++;
- if (actual !== expected) {
- passedTests++;
- return;
- }
- AssertionFailed(actual, expected, test);
- }
-}
-
-function test_signatures() {
- var TestObject = $('<div>');
- var options = new TransitOptions();
- options.opacity = 50;
- options.duration = 250;
-
- TestObject.css("scale", 2);
-
- TestObject.transition(options);
- TestObject.transition(options, 500);
- TestObject.transition(options, 'in');
- TestObject.transition(options, function () { var test: bool = true; });
- TestObject.transition(options, 500, 'out');
- TestObject.transition(options, 500, 'in-out', function () { var test: bool = true; });
-}
-
-function test_opacity() {
- var TestObject = $('<div>');
- TestObject.css('opacity', 25);
- Assert.Equal(TestObject.attr('style'), 'opacity: 25;', 'Opacity pre-transition test');
- TestObject.transition({ opacity: 75, duration: 1, complete: function () { Assert.Equal(TestObject.attr('style'), 'opacity: 75;', 'Opacity transition test'); } });
-}
-
-function test_scale() {
- var TestObject = $('<div>');
- TestObject.css('scale', 0.5);
- Assert.Equal(TestObject.attr('style'), 'transform: scale(0.5, 0.5);', 'Scale pre-transition test');
- TestObject.transition({ scale: 2, duration: 1, complete: function () { Assert.Equal(TestObject.attr('style'), 'transform: scale(2, 2);', 'Scale transition test'); } });
- TestObject.css('scale', [0.5, 1.0]);
- Assert.Equal(TestObject.attr('style'), 'transform: scale(0.5, 1);', 'Scale pre-transition test');
- TestObject.transition({ scale: [2, 3], duration: 1, complete: function () { Assert.Equal(TestObject.attr('style'), 'transform: scale(2, 3);', 'Scale transition test'); } });
-}
-
-function test_duration() {
- var TestObject = $('<div>');
- TestObject.css('opacity', 25);
- Assert.Equal(TestObject.attr('style'), 'opacity: 25;', 'Duration pre-transition test');
- TestObject.transition({ opacity: 75, duration: 1000, complete: function () { Assert.Equal(TestObject.attr('style'), 'opacity: 75;', 'Duration post-transition test'); } });
- // Test the transitions state partway through and assert that we're not to our final state yet.
- setTimeout(function () { Assert.NotEqual(TestObject.attr('style'), 'opacity: 75;', 'Duration intra-transition test'); }, 300);
-}
+///<reference path="../jquery/jquery.d.ts" />
+///<reference path="jquery.transit.d.ts" />
+
+
+class TransitOptions implements JQueryTransitOptions {
+ opacity: number;
+ duration: number;
+ delay: number;
+ easing: string;
+ complete: () => void;
+ scale: any;
+}
+
+$(document).ready(function () {
+ test_opacity();
+ test_scale();
+ test_duration();
+ // Wait for all tests to complete and report results
+ setTimeout(Assert.Results, 2000);
+});
+
+class Assert {
+ static totalTests: number = 0;
+ static passedTests: number = 0;
+
+ static Results() {
+ console.log('Tests succeeded - ' + passedTests + '/' + totalTests + '; Tests failed - ' + (totalTests - passedTests) + '/' + totalTests);
+ }
+
+ static AssertionFailed(actual: any, expected: any, test: string) {
+ console.log((test || '') + ' assertion failed -- expected ' + expected.toString() + '; actual ' + actual.toString());
+ }
+
+ static Equal(actual: any, expected: any, test?: string) {
+ totalTests++;
+ if (actual === expected) {
+ passedTests++;
+ return;
+ }
+ AssertionFailed(actual, expected, test);
+ }
+
+ static NotEqual(actual: any, expected: any, test?: string) {
+ totalTests++;
+ if (actual !== expected) {
+ passedTests++;
+ return;
+ }
+ AssertionFailed(actual, expected, test);
+ }
+}
+
+function test_signatures() {
+ var TestObject = $('<div>');
+ var options = new TransitOptions();
+ options.opacity = 50;
+ options.duration = 250;
+
+ TestObject.css("scale", 2);
+
+ TestObject.transition(options);
+ TestObject.transition(options, 500);
+ TestObject.transition(options, 'in');
+ TestObject.transition(options, function () { var test: bool = true; });
+ TestObject.transition(options, 500, 'out');
+ TestObject.transition(options, 500, 'in-out', function () { var test: bool = true; });
+}
+
+function test_opacity() {
+ var TestObject = $('<div>');
+ TestObject.css('opacity', 25);
+ Assert.Equal(TestObject.attr('style'), 'opacity: 25;', 'Opacity pre-transition test');
+ TestObject.transition({ opacity: 75, duration: 1, complete: function () { Assert.Equal(TestObject.attr('style'), 'opacity: 75;', 'Opacity transition test'); } });
+}
+
+function test_scale() {
+ var TestObject = $('<div>');
+ TestObject.css('scale', 0.5);
+ Assert.Equal(TestObject.attr('style'), 'transform: scale(0.5, 0.5);', 'Scale pre-transition test');
+ TestObject.transition({ scale: 2, duration: 1, complete: function () { Assert.Equal(TestObject.attr('style'), 'transform: scale(2, 2);', 'Scale transition test'); } });
+ TestObject.css('scale', [0.5, 1.0]);
+ Assert.Equal(TestObject.attr('style'), 'transform: scale(0.5, 1);', 'Scale pre-transition test');
+ TestObject.transition({ scale: [2, 3], duration: 1, complete: function () { Assert.Equal(TestObject.attr('style'), 'transform: scale(2, 3);', 'Scale transition test'); } });
+}
+
+function test_duration() {
+ var TestObject = $('<div>');
+ TestObject.css('opacity', 25);
+ Assert.Equal(TestObject.attr('style'), 'opacity: 25;', 'Duration pre-transition test');
+ TestObject.transition({ opacity: 75, duration: 1000, complete: function () { Assert.Equal(TestObject.attr('style'), 'opacity: 75;', 'Duration post-transition test'); } });
+ // Test the transitions state partway through and assert that we're not to our final state yet.
+ setTimeout(function () { Assert.NotEqual(TestObject.attr('style'), 'opacity: 75;', 'Duration intra-transition test'); }, 300);
+}
View
2  jquery.transit/jquery.transit.d.ts
@@ -1,6 +1,6 @@
// Type definitions for jQuery.transit.js
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
+/// <reference path="../jquery/jquery.d.ts"/>
// Transit //////////////////////////////////////////////////
View
4 jquery.validation/jquery.validation-tests.ts
@@ -1,5 +1,5 @@
-/// <reference path="jquery-1.8.d.ts"/>
-/// <reference path="jquery.validation-1.10.d.ts" />
+/// <reference path="../jquery/jquery.d.ts"/>
+/// <reference path="jquery.validation.d.ts" />
function test_validate() {
$("#commentForm").validate();
View
2  jquery.validation/jquery.validation.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
+/// <reference path="../jquery/jquery.d.ts"/>
interface ValidationOptions {
debug?: bool;
View
54 jquery.watermark/jquery.watermark-tests.ts
@@ -1,28 +1,28 @@
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
-/// <reference path="jquery.watermark-3.1.d.ts"/>
-
-
-$('#inputId').watermark('Required information');
-$('#inputId').watermark('Required information', { className: 'myClassName' });
-$('#inputId').watermark('Search', { useNative: false });
-
-$.watermark.options.className = 'myClass';
-
-$.watermark.options.useNative = false;
-
-var myFunction;
-$.watermark.options.useNative = myFunction;
-
-$.watermark.options.hideBeforeUnload = false;
-
-$.watermark.options = {
- className: 'myClass',
- useNative: false,
- hideBeforeUnload: false
-};
-
-$.watermark.options.hideBeforeUnload = true;
-$.watermark.show('input.optional');
-$.watermark.hide('#myInput');
-$.watermark.showAll();
+/// <reference path="../jquery/jquery.d.ts"/>
+/// <reference path="jquery.watermark.d.ts"/>
+
+
+$('#inputId').watermark('Required information');
+$('#inputId').watermark('Required information', { className: 'myClassName' });
+$('#inputId').watermark('Search', { useNative: false });
+
+$.watermark.options.className = 'myClass';
+
+$.watermark.options.useNative = false;
+
+var myFunction;
+$.watermark.options.useNative = myFunction;
+
+$.watermark.options.hideBeforeUnload = false;
+
+$.watermark.options = {
+ className: 'myClass',
+ useNative: false,
+ hideBeforeUnload: false
+};
+
+$.watermark.options.hideBeforeUnload = true;
+$.watermark.show('input.optional');
+$.watermark.hide('#myInput');
+$.watermark.showAll();
$.watermark.hideAll();
View
2  jquery.watermark/jquery.watermark.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
+/// <reference path="../jquery/jquery.d.ts"/>
interface WatermarkOptions {
className?: string; // Default class name for all watermarks
View
2  jquery/jquery-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="jquery-1.9.d.ts" />
+/// <reference path="jquery.d.ts" />
function test_add() {
$("p").add("div").addClass("widget");
View
4 jquerymobile/jquerymobile-tests.ts
@@ -1,5 +1,5 @@
-/// <reference path="jquery-1.8.d.ts" />
-/// <reference path="jquerymobile-1.2.d.ts" />
+/// <reference path="../jquery/jquery.d.ts" />
+/// <reference path="jquerymobile.d.ts" />
function test_api() {
$.mobile.changePage("about/us.html", { transition: "slideup" });
View
2  jquerymobile/jquerymobile.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
+/// <reference path="../jquery/jquery.d.ts"/>
interface JQueryMobileEvent { (event: Event, ui): void; }
View
4 jqueryui/jqueryui-tests.ts
@@ -1,5 +1,5 @@
-/// <reference path="jquery-1.8.d.ts" />
-/// <reference path="jqueryui-1.9.d.ts" />
+/// <reference path="../jquery/jquery.d.ts" />
+/// <reference path="jqueryui.d.ts" />
function test_draggable() {
View
2  jqueryui/jqueryui.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts"/>
+/// <reference path="../jquery/jquery.d.ts"/>
// Accordion //////////////////////////////////////////////////
View
4 knockback/knockback.d.ts
@@ -1,5 +1,5 @@
-/// <reference path="../backbone/backbone-0.9.d.ts" />
-/// <reference path="../knockout/knockout-2.2.d.ts" />
+/// <reference path="../backbone/backbone.d.ts" />
+/// <reference path="../knockout/knockout.d.ts" />
declare module Knockback {
export interface EventWatcherOptions {
View
58 knockout.editables/ko.editables.d.ts
@@ -1,30 +1,30 @@
-/// <reference path="knockout-2.2.d.ts" />
-
-// build: ko.editables 0.9
-// http://romanych.github.com/ko.editables/
-
-// bestowed by ko.editable(target)
-interface KnockoutEditable {
- addEditable(target: any): any;
- beginEdit(): void;
- commit(): void;
- rollback(): void;
- hasChanges(): bool;
-}
-
-interface KnockoutEditableStatic {
- (viewModel: any, autoInit?: bool): void;
- beginEdit(scope: string): void;
- commit(scope: string): void;
- rollback(scope: string): void;
- hasChanges(scope: string): bool;
-
- // INTERNAL
- //getHasChangesFlag(scope: string): any;
- //enable(object: any, scope: string); void;
-}
-
-// extend ko global
-interface KnockoutStatic {
- editable: KnockoutEditableStatic;
+/// <reference path="../knockout/knockout.d.ts" />
+
+// build: ko.editables 0.9
+// http://romanych.github.com/ko.editables/
+
+// bestowed by ko.editable(target)
+interface KnockoutEditable {
+ addEditable(target: any): any;
+ beginEdit(): void;
+ commit(): void;
+ rollback(): void;
+ hasChanges(): bool;
+}
+
+interface KnockoutEditableStatic {
+ (viewModel: any, autoInit?: bool): void;
+ beginEdit(scope: string): void;
+ commit(scope: string): void;
+ rollback(scope: string): void;
+ hasChanges(scope: string): bool;
+
+ // INTERNAL
+ //getHasChangesFlag(scope: string): any;
+ //enable(object: any, scope: string); void;
+}
+
+// extend ko global
+interface KnockoutStatic {
+ editable: KnockoutEditableStatic;
}
View
2  knockout.mapping/knockout.mapping.d.ts
@@ -3,7 +3,7 @@
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../knockout/knockout-2.2.d.ts" />
+/// <reference path="../knockout/knockout.d.ts" />
interface KnockoutMappingCreateOptions {
data: any;
View
2  knockout.validation/knockout.validation.d.ts
@@ -1,4 +1,4 @@
-/// <reference path="knockout-2.2.d.ts" />
+/// <reference path="../knockouot/knockout.d.ts" />
interface KnockoutValidationGroupingOptions {
deep?: bool;
View
36 knockout.viewmodel/knockout.viewmodel.d.ts
@@ -1,19 +1,19 @@
-/// <reference path="knockout-2.2.d.ts" />
-
-// build: knockout.viewmodel 1.1.3
-// http://coderenaissance.github.com/knockout.viewmodel/
-
-interface KnockoutViewModelStatic {
- toModel(viewmodel: any): any;
- fromModel(model: any, options?: any): any;
- updateFromModel(viewmodel: any, model: any);
-
- // INTERNAL flag: enable logging of conversions
- // logs will be written to console
- logging: bool;
-}
-
-// Extend ko global
-interface KnockoutStatic {
- viewmodel: KnockoutViewModelStatic;
+/// <reference path="../knockout/knockout.d.ts" />
+
+// build: knockout.viewmodel 1.1.3
+// http://coderenaissance.github.com/knockout.viewmodel/
+
+interface KnockoutViewModelStatic {
+ toModel(viewmodel: any): any;
+ fromModel(model: any, options?: any): any;
+ updateFromModel(viewmodel: any, model: any);
+
+ // INTERNAL flag: enable logging of conversions
+ // logs will be written to console
+ logging: bool;
+}
+
+// Extend ko global
+interface KnockoutStatic {
+ viewmodel: KnockoutViewModelStatic;
}
View
4 knockout/knockout-tests.ts
@@ -1,5 +1,5 @@
-/// <reference path="knockout-2.2.d.ts" />
-/// <reference path="../knockout.mapping/knockout.mapping-2.0.d.ts" />
+/// <reference path="knockout.d.ts" />
+/// <reference path="../knockout.mapping/knockout.mapping.d.ts" />
declare var $;
View
6 kolite/kolite-tests.ts
@@ -1,6 +1,6 @@
-/// <reference path="../jquery/jquery-1.9.d.ts" />
-/// <reference path="../knockout/knockout-2.2.d.ts" />
-/// <reference path="kolite-1.1.d.ts" />
+/// <reference path="../jquery/jquery.d.ts" />
+/// <reference path="../knockout/knockout.d.ts" />
+/// <reference path="kolite.d.ts" />
function test_asyncCommand() {
var saveCmd = ko.asyncCommand({
View
4 kolite/kolite.d.ts
@@ -4,8 +4,8 @@
// Definitions https://github.com/borisyankov/DefinitelyTyped
-/// <reference path="../jquery/jquery-1.9.d.ts" />
-/// <reference path="../knockout/knockout-2.2.d.ts" />
+/// <reference path="../jquery/jquery.d.ts" />
+/// <reference path="../knockout/knockout.d.ts" />
// Activity /////////////////////////////////////////////
View
4 linq/linq-tests.ts
@@ -1,5 +1,5 @@
-/// <reference path='../jasmine/jasmine-1.2.d.ts'/>
-/// <reference path='linq-2.2.d.ts'/>
+/// <reference path='../jasmine/jasmine.d.ts'/>
+/// <reference path='linq.d.ts'/>
// <reference path="c:/linq.js" /> tests were run from VisualStudio + Resharper7
describe("Linq.js tests", function () {
View
2  modernizr/modernizr-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="modernizr-2.6.d.ts" />
+/// <reference path="modernizr.d.ts" />
declare var $: any;
View
2  moment/moment-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="moment-1.7.d.ts" />
+/// <reference path="moment.d.ts" />
moment().add('hours', 1).fromNow();
View
2  msnodesql/msnodesql-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="msnodesql-0.2.d.ts" />
+/// <reference path="msnodesql.d.ts" />
import sql = module('msnodesql');
View
2  msnodesql/msnodesql.d.ts
@@ -4,7 +4,7 @@
// Definitions: https://github.com/borisyankov/DefinitelyTyped
-///<reference path='../node/node-0.8.d.ts' />
+///<reference path='../node/node.d.ts' />
declare module "msnodesql" {
export function open(connectionString: string, callback: Function): Connection;
View
2  mustache/mustache-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="mustache-0.7.d.ts" />
+/// <reference path="mustache.d.ts" />
var view = { title: "Joe", calc: function () { return 2 + 4; } };
var output = Mustache.render("{{title}} spends {{calc}}", view);
View
2  node_redis/node_redis-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="node_redis-0.8.d.ts" />
+/// <reference path="node_redis.d.ts" />
import redis = module('redis');
View
2  phonegap/phonegap-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="phonegap-2.2.d.ts" />
+/// <reference path="phonegap.d.ts" />
function test_accelerometer() {
var watchID = null;
View
2  platform/platform-tests.ts
@@ -1,4 +1,4 @@
-/// <reference path="platform-1.0.d.ts" />
+/// <reference path="platform.d.ts" />
declare interface ITestContainer {
[name: string]: PlatformStatic;
View
284 pouchDB/pouch-tests.ts
@@ -1,142 +1,142 @@
-/// <reference path="pouch-0.1.d.ts" />
-
-declare var $: any;
-
-function alert(thing: any) {
- $('body').append('<div>' + thing + '</div>');
-}
-
-var pouch: Pouch;
-
-function pouchTests() {
- Pouch('idb://testdb', function (err: PouchError, res: Pouch) {
- if (err) {
- alert('Error ' + err.status + ' occurred ' + err.error + ' - ' + err.reason);
- }
- else {
- pouch = res;
- alert("database opened");
- runTests();
- }
- });
-}
-
-var tests = [
- setupTests,
- testId,
- testAllDocs,
- testGet,
- testUpdate,
- testDelete,
- deleteDb
-];
-
-var testIndex;
-
-var revs: any = {};
-
-function runTests() {
- testIndex = 0;
- tests[testIndex++]();
-}
-
-// each test function except the last one needs to call nextTest when it is finished doing its thing.
-function nextTest() {
- alert("starting test " + testIndex);
- tests[testIndex++]();
-}
-
-function setupTests() {
- alert('setupTests');
- pouch.bulkDocs({
- docs: [{ _id: '1', name: 'record 1' },
- { _id: '2', name: 'record 2' },
- { _id: '3', name: 'record 3' }
- ]
- }, function (err: PouchError, res: PouchUpdateResponse[]) {
- if (err) {
- alert('Error ' + err.status + ' occurred ' + err.error + ' - ' + err.reason);
- }
- else {
- for (var i = 0; i < res.length; i++) {
- if (res[i].ok) {
- revs[res[i].id] = res[i].rev;
- }
- }
- alert("test records loaded");
- }
- nextTest();
- });
-}
-
-function testId() {
- alert('testId');
- var id = pouch.id();
- alert('Database Id = ' + id);
- nextTest();
-}
-
-function testGet() {
- alert('testGet');
- pouch.get('1', function (err: PouchError, res: PouchGetResponse) {
- if (err) {
- alert('Error ' + err.status + ' occurred ' + err.error + ' - ' + err.reason);
- }
- else {
- alert('Retrieved record with id=1, name=[' + res['name'] + ']');
- }
- nextTest();
- });
-}
-
-function testAllDocs() {
- alert('testAllDocs');
- pouch.allDocs(function (err: PouchError, res: PouchAllDocsResponse) {
- alert('allDocs resulted in ' + res.total_rows + ' results');
- for (var i = 0; i < res.total_rows; i++) {
- alert('Retrieved record with id=' + res.rows[i].id + ', rev=[' + res.rows[i].value.rev + ']');
- }
- nextTest();
- });
-}
-
-function testUpdate() {
- alert('testUpdate');
- pouch.put({ _id: '2', _rev: revs['2'], name: 'record 2 updated' }, function (err: PouchError, res: PouchUpdateResponse) {
- if (err) {
- alert('Error ' + err.status + ' occurred ' + err.error + ' - ' + err.reason);
- }
- else {
- alert('record updated id=' + res.id + ', rev=[' + res.rev + ']');
- }
- testAllDocs(); // spit out the db contents and then go on
- });
-}
-
-function testDelete() {
- alert('testDelete');
- pouch.remove({ _id: '3', _rev: revs['3'] }, function (err: PouchError, res: PouchUpdateResponse) {
- if (err) {
- alert('Error ' + err.status + ' occurred ' + err.error + ' - ' + err.reason);
- }
- else {
- alert('record deleted id=' + res.id + ', rev=[' + res.rev + ']');
- }
- testAllDocs(); // spit out the db contents and then go on
- });
-}
-
-function deleteDb() {
- alert('deleteDb');
- if (pouch) {
- pouch = null;
- Pouch.destroy('idb://testdb', function (err: PouchError) {
- if (err) {
- alert('Error ' + err.status + ' occurred ' + err.error + ' - ' + err.reason);
- }
- else {
- alert("database destroyed");
- }
- });
- }
-}
+/// <reference path="pouch.d.ts" />
+
+declare var $: any;
+
+function alert(thing: any) {