Commit Graph
395 Commits
Author SHA1 Message Date
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
Boris Yankov caf441cc2b Add jQuery tests 2012-12-26 09:27:55 +01:00
Boris Yankov 520db27d09 Update readme 2012-12-26 09:27:55 +01:00
Boris Yankov 85386ba901 Merge pull request #137 from johnpapa/master
Updated toastr to 1.2
2012-12-24 14:09:09 -08:00
John Papa e856597aac updated tests 2012-12-24 12:23:00 -05:00
John Papa c1171b9da8 updated for v1.2 2012-12-24 12:19:11 -05:00
Boris Yankov 1f337f8742 Fix underscore map method 2012-12-23 18:18:58 +02:00
Boris Yankov 6b738d15be Add hammer.js 2012-12-23 18:05:30 +02:00
Boris Yankov bd0179c363 Merge pull request #135 from kimsk/master
Fix [key:any] issue in raphael-2.1.d.ts
2012-12-22 06:54:39 -08:00
Karlkim Suwanmongkol 040d43ad88 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-22 01:06:45 -06:00
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