18734 Commits
Author SHA1 Message Date
Boris Yankov 27b81b54c7 Merge pull request #134 from danludwig/danludwig/work
Update jQuery UI DialogOptions.width property type from number to any.
2012-12-21 09:03:22 -08:00
Dan Ludwig 804f74e8db Update jQuery UI DialogOptions.width property type from number to any.
Example usage: $('#el').dialog({width: 'auto'});
2012-12-21 12:01:11 -05:00
Boris Yankov eedd17b51f Merge pull request #133 from jamesmanning/patch-1
Need to 'declare' the Spinner class
2012-12-20 10:22:22 -08:00
Boris Yankov 28a3a74fa1 Merge pull request #132 from jmvrbanac/master
Adding in license to answer Issue #96
2012-12-20 10:21:58 -08:00
James Manning ae4e55ab1a 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-20 11:02:45 -05:00
John Vrbanac 64aa1bd383 Adding MIT license 2012-12-20 00:49:17 -06:00
Boris Yankov 7c4f7ba0df Add modules to breeze.js definitions 2012-12-19 23:26:17 +02:00
Boris Yankov a0a1ab8430 Merge pull request #131 from BreeeZe/master
Added missing method 'replace' to KnockoutObservableArrayFunctions
2012-12-15 04:33:20 -08:00
BreeeZe 32010b4764 Added missing method 'replace' to KnockoutObservableArrayFunctions 2012-12-15 12:22:12 +01:00
Boris Yankov 0cb10f95b9 Merge pull request #129 from BreeeZe/master
Added missing properties to Knockout
2012-12-13 15:16:42 -08:00
Boris Yankov a93f99cc07 Merge pull request #128 from DazWilkin/master
Added Vimeo froogaloop; Updated (corrected) YouTube
2012-12-13 12:08:26 -08:00
BreeeZe de50ebadb3 Added 'ieVersion' , 'isIe6' and 'isIe7' to Knockout utils definition. 2012-12-13 20:19:04 +01:00
Daz Wilkin df0dd60fb0 YouTube API: added exports 2012-12-13 10:57:27 -08:00
Daz Wilkin bf3ea4b65c Vimeo Froogaloop API 2012-12-13 10:56:03 -08:00
Boris Yankov 5984e8c159 Merge pull request #123 from vladev/master
SockJS 0.3 definitions
2012-12-12 01:15:29 -08:00
Boris Yankov fbeb73a0f8 Merge pull request #122 from tkirda/master
Updated map return type on static map method
2012-12-12 01:15:00 -08:00
Emil Ivanov e30a04c0b1 Added comment headers and version 2012-12-12 11:02:44 +02:00
Emil Ivanov 55146899fc 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-12 10:58:28 +02:00
Tomas Kirda 1416fa0cb8 Change return type for map. 2012-12-11 17:29:22 -06:00
Boris Yankov b58b4639c2 Merge pull request #121 from BreeeZe/master
Added "isComputed" to knockout
2012-12-11 13:36:55 -08:00
BreeeZe 45a825465e Added missing util method "isComputed" 2012-12-11 22:21:10 +01:00
Boris Yankov ab426fffdd Merge pull request #119 from BreeeZe/master
Added 'applyBindindsToNode' in Knockout
2012-12-10 03:24:05 -08:00
BreeeZe 9c0146b01d Added missing method "ko.applyBindingsToNode" to knockout 2012-12-10 11:46:27 +01:00
Boris Yankov 1ddd01fed2 Merge pull request #117 from stuartthompson/master
Adds unload to function definitions. (Issue #116)
2012-12-09 09:47:05 -08:00
Stuart Thompson 9409f60b27 Adds unload to the list of function definitions.
Previously unload was omitted from the declarations file.
2012-12-09 09:17:40 -08:00
Boris Yankov e147cc1224 Merge pull request #114 from stuartthompson/master
Backbone Router now extends Events class in definition file.
2012-12-08 02:16:09 -08:00
Stuart Thompson 040418a364 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-07 15:39:11 -08:00
Boris Yankov 0e64515389 Update socket.io meta info 2012-12-07 19:14:36 +02:00
Boris Yankov 9bca26376b Update socket.io 2012-12-07 19:14:13 +02:00
Boris Yankov bcfb14e808 Update jquery.transit filename and readme 2012-12-07 19:05:55 +02:00
Boris Yankov 27c450617f Merge pull request #113 from MrBigDog2U/master
Add jquery.transit definitions
2012-12-07 08:56:36 -08:00
unknown 96de1f3980 Removing old naming convention folder 2012-12-07 08:44:23 -08:00
unknown 6fd085117f Rename to conform to new convention 2012-12-07 08:38:59 -08:00
unknown 5e600b6c05 New definitions for jquery-transit 2012-12-07 08:27:00 -08:00
Boris Yankov 402d45818c Rename and update version information for socket.io 2012-12-07 15:20:24 +02:00
Boris Yankov e20927bcf4 Merge pull request #111 from DazWilkin/master
YouTube Player API
2012-12-06 21:42:47 -08:00
Daz Wilkin fb13c206f2 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-06 13:01:12 -08:00
Boris Yankov 3b4e77cf37 Merge pull request #110 from danludwig/master
Overload jQuery val() to accept single argument of type number
2012-12-06 11:41:53 -08:00
Dan Ludwig e4bd0e59e0 Overload jQuery val() function to accept argument of type number.
Otherwise, it is necessary to call .toString() on the number when passing.
2012-12-06 10:49:28 -05:00
Dan Ludwig 1731696e41 Remove trailing whitespace in jquery/jquery-1.8.d.ts. 2012-12-05 16:35:55 -05:00
Boris Yankov 6051bf74bf Merge pull request #108 from burlandm/master
Add flot definitions
2012-12-05 02:33:05 -08:00
Boris Yankov e22f30c0a7 Merge pull request #107 from codeBelt/master
Add GreenSock TypeScript Definition
2012-12-05 02:32:45 -08:00
Matt Burland 2c11ca9d46 Adding flot definitions 2012-12-04 10:45:32 -05:00
Robert S. 351ab5a993 Add GreenSock Definition 2012-12-04 00:21:45 -06:00
Robert S. 840befbcf0 Add GreenSock Definition 2012-12-04 00:15:45 -06:00
Boris Yankov a53f12f9a8 Merge pull request #105 from worr/marked
Added marked v0.2.6
2012-12-02 12:19:30 -08:00
Will Orr e30c6ad17f Added marked v0.2.6 2012-12-02 15:12:35 -05:00
Boris Yankov 48325284b7 Add jQuery mouse events overloads and new tests 2012-12-02 21:06:32 +02:00
Boris Yankov 1e2c8209a7 Add jQuery mousedown overload 2012-12-02 21:06:32 +02:00
Boris Yankov 038ccae735 Merge pull request #103 from worr/master
Added socket.io
2012-12-02 01:48:56 -08:00