Commit Graph
311 Commits
Author SHA1 Message Date
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
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
Damiano 8309e74f67 added support to Highcharts-2.3 request #72 2012-11-25 23:04:20 +01:00
Boris Yankov 2cf35b71de Add jQuery index() overloads and tests 2012-11-24 02:43:33 +02:00
Boris Yankov 755a3417bb Add missing load event to jQuery definitions 2012-11-24 02:35:39 +02:00
Boris Yankov ad406e90bc Merge pull request #94 from bbss/master
Web Audio API definitions
2012-11-23 03:17:47 -08:00
Baruch Berger 50edcd2053 Updated readme and added informative comment on nightly build definitions. 2012-11-22 23:56:00 +01:00
Baruch Berger 9c62cfa86c Added nightly build definitions file 2012-11-22 23:22:52 +01:00
Baruch Berger 4d4690577e added waa.d.ts and readme.md 2012-11-22 21:28:35 +01:00
Boris Yankov 4ecc87bee6 Update knockout.mapping reference path 2012-11-22 11:46:36 +02:00
Boris Yankov b04c320a03 Merge pull request #93 from matthewkimber/master
Chrome Extension Ambient Type Declarations
2012-11-22 01:46:00 -08:00
Boris Yankov 8c5ed9e30d Merge pull request #92 from guyellis/master
Fix jQuery is() method return type.
2012-11-22 01:45:22 -08:00