Commit Graph

393 Commits

Author SHA1 Message Date
Oliver Klemencic
2101c7bc3d Adapted to latest fabric.js changes (dynamic_origin support) 2012-12-29 12:11:00 -08:00
Oliver Klemencic
15b588db28 Added fabric.js type definitions 2012-12-27 14:02:56 +01: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
Robert S
9882c32821 Add GreenSock Definition 2012-12-26 09:28:02 +01:00
Robert S
0d0988ba04 Add GreenSock Definition 2012-12-26 09:28:02 +01:00
Will Orr
665ec76c44 Added marked v0.2.6 2012-12-26 09:28:01 +01:00
Boris Yankov
22ea294568 Add jQuery mouse events overloads and new tests 2012-12-26 09:28:00 +01:00
Boris Yankov
13fca9f5cc Add jQuery mousedown overload 2012-12-26 09:28:00 +01:00
BreeeZe
42fd31a1ad Added missing ko method : "cleanNode" 2012-12-26 09:27:59 +01:00
Will Orr
1df392c35f Added socket.io definition file 2012-12-26 09:27:58 +01:00
BreeeZe
fa78b7ab1b The expires option can be either a number or a Date object. (https://github.com/carhartl/jquery-cookie#expires)
Since there is no option to define both for a property it should be defined as any.
2012-12-26 09:27:58 +01:00
Roy Goode
fdbf819c52 Fixed typo in readme 2012-12-26 09:27:57 +01:00
Anton Tayanovskyy
9389c3a3e9 Fixed a typo in node-0.8.d.ts 2012-12-26 09:27:57 +01:00
Roy Goode
cfd36d55ea Added jQuery.Cookie definitions and tests 2012-12-26 09:27:56 +01:00