Commit Graph

69 Commits

Author SHA1 Message Date
Benjamin Fox
623f30ab19 Add overloads for all to support typed arrays (#9622)
Adds overloads for arrays of up to 6 elements, before
falling back to old behaviour.
2016-06-14 00:47:56 +09:00
eggers
3c728a34b0 Adding Promise.nearer definition (#9006) 2016-04-18 00:29:54 +09:00
Stephen Ierodiaconou
904e8f5cd2 A Q deferred can be resolved with a promise 2016-03-23 17:14:52 +00:00
Stephen Ierodiaconou
a3a365d929 Update Q tests to include fact deferred can be resolved with a value or promise
As per the Q docs "Note that a deferred can be resolved with a value or a promise. "
2016-03-23 17:14:10 +00:00
vvakame
7de6c3dd94 Merge branch 'master' into rename-repo-url 2016-03-17 21:06:54 +09:00
vvakame
14fe4313f4 replace internal module to namespace 2016-03-17 02:18:10 +09:00
vvakame
56295f5058 replace https://github.com/borisyankov/DefinitelyTyped to https://github.com/DefinitelyTyped/DefinitelyTyped 2016-03-17 00:55:26 +09:00
vvakame
4de74cb527 normalize line ending (CRLF -> LF) 2016-02-16 01:20:30 +09:00
Joseph Dotson
aae1368c8e passing a value to resolve should not be required in Q 2015-12-08 14:47:30 -05:00
Remo H. Jansen
53e93bf70a Added Q.race method.
This method was missing from the type definitions file.
2015-11-25 09:40:03 +00:00
vvakame
59fa100d05 refactor q/Q.d.ts 2015-08-17 23:53:58 +09:00
Panu Horsmalahti
3eb67c9e82 Better type inference for the spread function. 2015-08-17 14:55:21 +03:00
Marc Sallin
d0e842e2f9 Q: Support for the Q.noConflict() method. 2015-06-25 00:21:40 +02:00
Florent Chiron
c969d6275c Add signature for promise.tap(onFulfilled) 2015-05-01 03:30:41 +02:00
falsandtru
1dc67b231b Fix type definition 2015-03-07 17:01:00 +09:00
John Reilly
44116c6b31 Replace overloads with union types 2015-01-29 11:46:35 +00:00
John Reilly
8d8c0f3a0c Merge pull request #3537 from mikaturunen/master
Q.try update and reasoning
2015-01-28 15:39:55 +00:00
Mika Turunen
d04ad93621 Q.try update and reasoning 2015-01-26 10:30:02 +02:00
Masahiro Wakame
09b2e08616 Merge pull request #3070 from d-ph/fail-precedence-bug
Fix .fail<> generic precedence bug and missing generic on .reject()
2014-11-29 13:44:09 +09:00
jbblanchet
9320265200 Remove jQuery reference 2014-11-24 18:42:52 -05:00
jbblanchet
c85918d0e8 Add test for new when signature 2014-11-24 18:37:56 -05:00
jbblanchet
456388ff73 Add when signature for Promise<void> 2014-11-24 17:43:17 -05:00
Sébastien De Saint Florent
17df178729 Update Q.d.ts with optional onRejected parameter
Spread method does not require onRejected param.
From Q documentation:
function eventualAdd(a, b) {
    return Q.spread([a, b], function (a, b) {
        return a + b;
    })
}
2014-11-03 17:08:23 -05:00
d-ph
9cbb16d81e Fix .fail<> generic precedence bug and missing generic on .reject() 2014-11-01 10:57:08 +00:00
David Morgantini
ca4d1a714c upgrade to q v 1.0.1 2014-10-27 21:10:53 +00:00
cristian-harja
2c861a8a1d Silly mistake in pull request #2643 2014-08-29 10:38:29 +02:00
Masahiro Wakame
15ea6ac80c Merge pull request #2643 from cristian-harja/patch-1
missing Promise.nodeify() added
2014-08-29 17:22:55 +09:00
VILIC VANE
ad0059764a add Q.delay(ms: number) 2014-08-08 12:50:34 +08:00
cristian-harja
86c0c56e6e missing Promise.nodeify() added 2014-08-07 18:24:18 +03:00
Jonathan Häberle
12fba7b626 missing npost() function added 2014-08-02 20:29:45 +02:00
Michel Salib
66ee214290 Adding Q.nbind function 2014-06-25 10:34:25 +02:00
Bart van der Schoor
3d64ea7395 added missing urls to some authors
fixed node urls
2014-06-18 23:31:35 +02:00
vvakame
e9be9177f6 remove not required .tscparams 2014-06-12 18:36:47 +09:00
Michel Salib
48a2c18384 Adding denodeify definition for Q 2014-06-10 16:43:12 +02:00
Panu Horsmalahti
da3fcf9a85 Update Q-tests.ts
Add tests for Q.nfapply and Q.nfcall.
2014-03-29 12:45:09 +02:00
Panu Horsmalahti
1503788c8d Update Q.d.ts
Add nfapply defintion.

See API reference here: https://github.com/kriskowal/q/wiki/API-Reference
2014-03-27 13:09:09 +02:00
John Reilly
40e8f2f181 Q: Some JSDoc goodness
Created based on https://github.com/kriskowal/q/wiki/API-Reference
2014-03-24 16:55:35 +00:00
johnnyreilly
6ab7831306 Q: Fixed up test with help from @IgorBek 2013-12-23 09:54:50 +00:00
johnnyreilly
9014c6fb94 Q: change overload order fixes tests 2013-12-21 15:47:34 +00:00
John Reilly
d0c2d93cc0 Q: updated test to reflect 2013-11-26 17:48:45 +00:00
John Reilly
fa6f389191 Q:jQueryPromise converted implicitly to Q promise 2013-11-26 17:39:54 +00:00
Basarat Ali Syed
1edc17e458 Merge pull request #1291 from RemcoBlok/patch-2
add thenResolve and thenReject utility methods
2013-11-19 20:10:20 -08:00
Remco Blok
5b87b20764 add thenResolve and thenReject utility methods 2013-11-19 12:55:45 +00:00
Remco Blok
1e70b8d290 fix Q.onerror spelling mistake and missing parameter
Q.onerror was spelled Q.oneerror with two e's. It was also missing the reason parameter.
2013-11-19 12:39:09 +00:00
Masahiro Wakame
1b28c3344b Removed not required .tscparams 2013-11-19 13:56:28 +09:00
John Simon
69935860d7 Add any types to everything in Q.d.ts so it works with --noImplicitAny 2013-10-22 11:35:10 -04:00
vvakame
34899afaae Merge commit '2772dfeec9cdb1744f6c010babef9e40b6770dd7' into plan-of-destroy-implicitAny 2013-10-18 12:41:53 +09:00
Sean Clark Hess
e97c31c8fd Q: reversed the order of function overrides to put promises first for nested promises 2013-10-10 15:37:18 -06:00
vvakame
2708bc05cd Fixed tsc failed on Node.js v0.8.25 2013-10-03 11:23:38 +09:00
vvakame
3fe1f6bc4e Fixed to CI test passing 2013-10-03 10:18:58 +09:00