Commit Graph
10254 Commits
Author SHA1 Message Date
Boris Yankov 916738cef9 Merge pull request #147 from david-driscoll/master
Updated RequireJS definition to support error callbacks
2012-12-30 18:32:42 -08:00
Boris Yankov f932ab486d Update jQuery.ajaxSetup() definition 2012-12-31 04:31:49 +02:00
Boris Yankov 470c5feec2 Merge pull request #146 from k00ni/patch-1
Set options in ajaxSetup(options: any) optional, to allow use it as a get function
2012-12-30 18:02:09 -08:00
Boris Yankov 1484e18399 Update bootstrap definitions to 2.2 2012-12-31 04:00:17 +02:00
Jacob Hickman ca10be18da Adding definitions for Platform 1.0.0 2012-12-31 10:36:44 +09:00
David Driscoll 667699abc2 Updated RequireJS def to handle error callbacks
Updated RequireJS definition to support error callbacks.
In addition it exposes a RequireError interface, with the potential values of the param passed to the error callback.
Also added overload for require(module : string), so that require can potentially be used inline mod.
2012-12-30 12:32:12 -07:00
Konrad Abicht 1d54aaefe3 Update jquery/jquery-1.8.d.ts 2012-12-30 11:16:59 +01:00
Oliver Klemencic 2101c7bc3d Adapted to latest fabric.js changes (dynamic_origin support) 2012-12-29 12:11:00 -08:00
Matthew Kimber 88c34d21ad Changed the arrow functions that were erroneously returning anonymous objects to return void instead. Also updated the gitignore to include macintosh specific meta files. 2012-12-28 18:14:59 -07:00
Judah Gabriel Himango 678665f98f Added default comparer to KnockoutPostBox 2012-12-28 10:20:23 -06:00
Judah Gabriel Himango c6ba5a2416 Added knockout.postbox 2012-12-28 10:05:58 -06:00
Oliver Klemencic 15b588db28 Added fabric.js type definitions 2012-12-27 14:02:56 +01:00
Boris Yankov 9b6699d118 Update bootstrap to 2.2 2012-12-27 05:32:01 +02:00
Boris Yankov d57605344b Update readme 2012-12-27 04:42:14 +02:00
Boris Yankov 4d480212b7 Merge pull request #141 from danludwig/danludwig/work
Add definition file for knockout.validation plugin.
2012-12-26 18:07:53 -08:00
Boris Yankov a48917fc8f Merge pull request #140 from damianog/master
Update Globalize months property
2012-12-26 17:59:17 -08:00
Dan Ludwig 9203b0f50c Add definition file for knockout.validation plugin. 2012-12-26 09:29:02 -05:00
Damiano f039c13972 Globalize - Added GlobalizeMonths interface
Added GlobalizeMonths interface to detail months property by replacing
the 'any[]' declaration.
2012-12-26 09:53:25 +01:00
Damiano 895abe5d8a Merge remote-tracking branch 'upstream/master' 2012-12-26 09:30:01 +01:00
John Papa b920d8a7f1 updated tests 2012-12-26 09:28:23 +01:00
John Papa 3b84ce931f updated for v1.2 2012-12-26 09:28:22 +01:00
Boris Yankov 437c54741f Fix underscore map method 2012-12-26 09:28:22 +01:00
Boris Yankov c76905da74 Add hammer.js 2012-12-26 09:28:21 +01:00
Karlkim Suwanmongkol e7e464a3a9 Fix [key: any] issue in raphael-2.1.d.ts
This is similar to old jquery definition issue mentioned in
http://stackoverflow.com/questions/13630578/why-does-the-jquery-d-ts-typescript-definition-file-throw-a-compile-error

We should update Raphael definition as well.
2012-12-26 09:28:20 +01:00
Dan Ludwig f002d391cd Update jQuery UI DialogOptions.width property type from number to any.
Example usage: $('#el').dialog({width: 'auto'});
2012-12-26 09:28:20 +01:00
James Manning c40d648bd1 Need to 'declare' the Spinner class
In TypeScript 0.8.1.1, a 'declare' is needed in front of the 'class Spinner', since without it the compiler attempts to compile it as an actual class definition, and fails with:

Message: Overload declaration lacks definition
Line number: 27
Column number: 5
Source error: 
Line 26: class Spinner {
Line 27:     constructor (options?: SpinnerOptions);
-------------^
Line 28:     spin(target?: any);

The test in the typescript codebase that confirms this is intentional behavior is in tests/compiler/class.ts

http://typescript.codeplex.com/SourceControl/changeset/view/2bee84410e02#tests/compiler/class.ts

****
describe('Testing function signatures inside classes', function () {
   it('Regression test - was previously giving runtime error', function () {
       var code = "class A { a(completed: () => any): void; }";
       Harness.Compiler.compileString(code, 'fnsig-inside-classes', function (result) {
           assert.compilerWarning(result, 1, 10, 'Overload declaration lacks definition');
           assert.equal(result.errors.length, 1);
       });
   });
});
****

The compiler code that implements the check is in src/compiler/signatures.ts

http://typescript.codeplex.com/SourceControl/changeset/view/2bee84410e02#src/compiler/signatures.ts

****
if (!hasConstruct && !this.definitionSignature && this.signatures[i].declAST && this.signatures[i].declAST.isOverload && !hasFlag(this.signatures[i].declAST.fncFlags, FncFlags.Ambient)) {
    checker.errorReporter.simpleError(this.signatures[i].declAST, "Overload declaration lacks definition");
}
****

By adding the 'declare', we tell the TypeScript compiler that this is just intending to expose the API of the class, not the actual implementation.
2012-12-26 09:28:19 +01:00
John Vrbanac 675a94fde3 Adding MIT license 2012-12-26 09:28:18 +01:00
Boris Yankov cce2c80831 Add modules to breeze.js definitions 2012-12-26 09:28:18 +01:00
BreeeZe e26a40dabf Added missing method 'replace' to KnockoutObservableArrayFunctions 2012-12-26 09:28:17 +01:00
BreeeZe 185e737528 Added 'ieVersion' , 'isIe6' and 'isIe7' to Knockout utils definition. 2012-12-26 09:28:16 +01:00
Daz Wilkin 318db9c30a YouTube API: added exports 2012-12-26 09:28:16 +01:00
Daz Wilkin a14eca6d9d Vimeo Froogaloop API 2012-12-26 09:28:15 +01:00
Emil Ivanov 2926808284 Added comment headers and version 2012-12-26 09:28:14 +01:00
Emil Ivanov 96fa1a3f54 Added SockJS definition
See https://github.com/sockjs/sockjs-client

Created manually by inspecting the various parameters
and return values.

There are seperate events, since, although SockJS
exposes a Websocket-like interface, it's not 100% same.
2012-12-26 09:28:14 +01:00
Tomas Kirda 07a0615ac5 Change return type for map. 2012-12-26 09:28:13 +01:00
BreeeZe 2d6f98933a Added missing util method "isComputed" 2012-12-26 09:28:12 +01:00
BreeeZe 1c4ae5a413 Added missing method "ko.applyBindingsToNode" to knockout 2012-12-26 09:28:12 +01:00
Stuart Thompson 6f5a02f916 Adds unload to the list of function definitions.
Previously unload was omitted from the declarations file.
2012-12-26 09:28:11 +01:00
Stuart Thompson cdb485d942 Backbone.Router now extends Events
The Backbone.Router class did not previously extend Events in the
definition file. This caused the TypeScript compiler to raise an
error when calling one of the Events methods (such as on()) on an
instance of a router.

This change allows instances of classes derived from Backbone.Router
to call methods on the Events class that are inherited by the router.
2012-12-26 09:28:10 +01:00
Boris Yankov cb1ba44af7 Update socket.io meta info 2012-12-26 09:28:10 +01:00
Boris Yankov 33c64e4345 Update socket.io 2012-12-26 09:28:09 +01:00
Boris Yankov 16503dbb5f Update jquery.transit filename and readme 2012-12-26 09:28:08 +01:00
unknown 53e1c7be6a Removing old naming convention folder 2012-12-26 09:28:08 +01:00
unknown 8f8b0a3358 Rename to conform to new convention 2012-12-26 09:28:07 +01:00
unknown 4a5421a6ee New definitions for jquery-transit 2012-12-26 09:28:06 +01:00
Boris Yankov 9e05f16a45 Rename and update version information for socket.io 2012-12-26 09:28:06 +01:00
Daz Wilkin 9531dbb761 YouTube API
First attempt at creating a TypeScript definition file. This is only a
partial implementation. Unsure about the use of the module to scope the
interfaces.
2012-12-26 09:28:05 +01:00
Dan Ludwig 410843e396 Overload jQuery val() function to accept argument of type number.
Otherwise, it is necessary to call .toString() on the number when passing.
2012-12-26 09:28:04 +01:00
Dan Ludwig febb80a323 Remove trailing whitespace in jquery/jquery-1.8.d.ts. 2012-12-26 09:28:04 +01:00
Matt Burland 170ed861a3 Adding flot definitions 2012-12-26 09:28:03 +01:00