Commit Graph
9259 Commits
Author SHA1 Message Date
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
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