Commit Graph
960 Commits
Author SHA1 Message Date
Andrew Gaspar c0fb4cc5c3 Renamed q test file. 2013-03-23 19:08:45 -05:00
Andrew Gaspar 105af2df70 Slight change to makeNodeResolver in q.d.ts and added a second declaration for it in jasmine to accomodate 'done' function for async funciton calls. 2013-03-23 16:30:49 -05:00
Andrew Gaspar 8fd794abff Remove qcommon and added q.module.d.ts which declares a module 'q'. Also added a couple jasmine style tests. 2013-03-23 16:22:55 -05:00
Andrew Gaspar 362cefbcc0 Moved q declaration for CommonJS to qcommon 2013-03-23 03:18:39 -05:00
Andrew Gaspar a94c9ab222 Added type definitions that expose q as a CommonJS module. Under Qnode folder. 2013-03-23 03:13:57 -05:00
Diullei Gomes 6728d292b0 Merge pull request #411 from maroy1986/master
Add missing/change definition in durandal/durandal.d.ts
2013-03-22 13:27:03 -07:00
Marc-Andre Roy 10890574d3 Add backgroundpositionClass to definition
Add backgroundpositionClass to ToastrOptions interface
2013-03-22 16:18:55 -04:00
Marc-Andre Roy 469b9a8bc5 Update definition file for durandal.d.ts
- Make applicationHost parameter optional in setRoot
- Add missing activeRoute definition
- Add missing useConvention definition
- Add missing handleInvalidRoute definition
- Change mapRoute definition so you can pass an URL with all the other
parameters as you will usealy do or you pass a RouteInfo object without
having to give it any other parameter. moduleId, name and visible are
now optional.
2013-03-22 11:18:26 -04:00
Diullei Gomes f902be86ab Merge pull request #410 from jwcarroll/master
Updated IDeferred.reject per Angular docs
2013-03-21 09:11:15 -07:00
Josh Carroll c983f12458 Changed reject to be 'any' per angular docs 2013-03-21 12:01:28 -04:00
Boris Yankov 91b97bfa9c Merge pull request #407 from anchann/master
AngularJS: fixed typing of the ng.IPromise.then function
2013-03-19 20:35:45 -07:00
Anton Zolotkov 26d0c8a757 AngularJS: fixed typing of the ng.IPromise.then function
The type definition for ng.IPromise.then was, in my opinion, incorrect
semantically, and breaking on practical examples in my codebase.

An `IPromise`' `then` function takes a callback which is called with the
value of the promise once it's fulfilled. This could be a number, a
string, some object, an array of strings, anything really. Yet the
typing in angular.d.ts specified `then` as taking a `successCallback` of
type `(response: PromiseCallbackArg) => any`.

The definition of `PromiseCallbackArg` seems very permissive at first
glance, as it is defined to be an object with a bunch of fields, all
optional. Any object, a number, and a string all type check correctly
with such a type, but an array of strings, for example, does not
(`cPromise` in the provided list of test).

Furthermore, it seems to me that the `PromiseCallbackArg` definition was
added specifically to support the response type for promises returned by
the Angular `$http` service, the `ng.IHttpPromise`.

So instead of having an incorrect type on the `ng.IPromise.then` function,
I propose we return it to its generic form, and instead override the
type of the inherited `then` function in the `ng.IHttpPromise` interface.
This would also warrant renaming `PromiseCallbackArg` to
`IHttpPromiseCallbackArg`.
2013-03-20 11:48:15 +09:00
Diullei Gomes 093fb5da49 Merge pull request #405 from sumegizoltan/master
Definition of bgiframe for IE6 - simple plugin implementation without jQuery.
2013-03-19 07:43:23 -07:00
sumegizoltan a26438737f Definition of bgiframe for IE6 - simple plugin implementation without jQuery. 2013-03-19 15:38:20 +01:00
Diullei Gomes 8ae05f4988 Merge pull request #404 from sumegizoltan/master
jquery.elang definition
2013-03-19 07:38:02 -07:00
sumegizoltan 0ebf1631ec Definition for jquery.eLang - Language Learning application. 2013-03-19 15:31:23 +01:00
Diullei Gomes a8b77d4998 Merge pull request #402 from Steve-Fenton/patch-3
Removal of logChange method and explanation
2013-03-16 07:22:05 -07:00
Steve Fenton b7008627b5 Removal of logChange method and explanation
logChange is an example of an extension, not part of the standard library. To add extensions, simply extend the interface outside of the definition file:

interface KnockoutExtenders {
    logChange(target: KnockoutObservableAny, option: string): KnockoutObservableAny;
}
2013-03-16 09:31:04 +00:00
Boris Yankov 96814e5e60 Merge pull request #401 from niemyjski/master
Added definitions for trunk8
2013-03-15 14:20:58 -07:00
Blake Niemyjski 4e202e0409 updated the trunk8 def. 2013-03-15 13:39:21 -05:00
Blake Niemyjski fe5645d69a Added typescript definitions for trunk8 2013-03-15 13:35:00 -05:00
Diullei Gomes 4817a46bb8 Merge pull request #399 from jlerasmus/master
Added EntityManager.hasChangesChanged event
2013-03-14 04:44:45 -07:00
Jaco Erasmus b04dcfa3d8 Update breeze-tests.ts
Changed hasChanges event to hasChangesChanged as it was renamed in v1.1.0
2013-03-14 11:34:28 +02:00
Jaco Erasmus 86e4a94090 Added EntityManager.hasChangesChanged event
EntityManager.hasChanges event was renamed to EntityManager.hasChangesChanged in v1.1.0
2013-03-14 11:26:43 +02:00
Diullei Gomes fadf0760ce Merge pull request #388 from MagicMau/master
Updated Underscore.js and added underscore-ko.js
2013-03-13 04:53:30 -07:00
Diullei Gomes 8f46f9a2ee Merge pull request #394 from Diullei/master
bug fix 'knockout->KnockoutExtenders'
2013-03-12 05:22:53 -07:00
Diullei Gomes 0d7d1aea3c bug fix 'knockout->KnockoutExtenders' 2013-03-12 09:20:50 -03:00
Diullei Gomes c23ae2a1d6 Merge pull request #393 from Steve-Fenton/patch-2
Added logChange to extenders.
2013-03-12 05:15:13 -07:00
Steve Fenton 0016ecf978 Added logChange to extenders.
Added logChange to extenders.

http://knockoutjs.com/documentation/extenders.html
2013-03-12 12:06:36 +00:00
Diullei Gomes 188311ebef Merge pull request #390 from Steve-Fenton/patch-1
Add createEntity method to EntityManager
2013-03-11 09:57:38 -07:00
Steve Fenton c74ca9a5d9 Add createEntity method to EntityManager
Add createEntity method to EntityManager
2013-03-11 16:54:08 +00:00
Maurits Elbers 5f4a02e7c5 updated readme for new underscore-ko definitions 2013-03-11 11:20:43 +01:00
Maurits Elbers 14a8e0faf9 added definitions for underscore-ko 1.2.2 2013-03-11 11:18:27 +01:00
Maurits Elbers 45f01e555e updated return types of reduce/foldl/inject 2013-03-11 11:17:54 +01:00
Boris Yankov f694c0d962 Merge pull request #385 from kenokabe/patch-1
Update README.md
2013-03-10 11:39:59 -07:00
Ken OKABE 5ab175409e Update README.md 2013-03-10 12:22:26 +09:00
Diullei Gomes 4b85c64c40 Merge pull request #384 from joshtynjala/createjs
CreateJS function signature fixes and intentation consistency
2013-03-08 05:10:20 -08:00
Josh Tynjala 6acbdec7da easeljs: fixed signature of static extractFrame() on SpriteSheetUtils 2013-03-08 04:39:01 -08:00
Josh Tynjala 5ab7535590 tweenjs: fixed signature of static get() on Tween 2013-03-08 04:27:51 -08:00
Josh Tynjala 6c510f8050 tweenjs: converted inconsistent intentation to spaces (like easeljs). 2013-03-08 04:21:17 -08:00
Josh Tynjala 4edce74116 preloadjs: removed unnecessary overload of getResult() on LoadQueue 2013-03-08 04:18:12 -08:00
Josh Tynjala 1a748a6a96 preloadjs: loadFile() and loadManifest() second argument should be optional 2013-03-08 04:16:38 -08:00
Josh Tynjala 944a4a50de preloadjs: converted inconsistent intentation to spaces (like easeljs). 2013-03-08 04:14:48 -08:00
Diullei Gomes f2080cc18c Merge pull request #383 from kontan/webaudio
Updated Web Audio API to Draft 13 December 2012
2013-03-08 03:45:55 -08:00
Kon 997bc7eca9 Renamed previous waa.d.ts to waa-20120802.d.ts 2013-03-08 15:53:00 +09:00
Kon 382c74b328 Updated Web Audio API to Draft 13 2013-03-08 15:45:45 +09:00
Boris Yankov 3d3886a76f Merge pull request #382 from JakubMrozek/master
angular.mock.inject() returns any type, not void
2013-03-07 10:56:20 -08:00
JakubMrozek b807b616d8 angular.mock.inject() return any type 2013-03-07 19:37:45 +01:00
Diullei Gomes 6e7d15837d Merge pull request #381 from JakubMrozek/master
ng.IRouteProviderProvider should be called ng.IRouteProvider in angular.d.ts
2013-03-07 09:35:21 -08:00
JakubMrozek e9dfb35006 Rename IRouteProviderProvider to IRouteProvider for angular.d.ts 2013-03-07 18:28:52 +01:00