mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Merge branch 'master' into rename-repo-url
This commit is contained in:
+1
-1
@@ -154,7 +154,7 @@ Q.nbind(kitty.find, kitty)({ cute: true }).done((kitties: any[]) => {});
|
||||
/*
|
||||
* Test: Can "rethrow" rejected promises
|
||||
*/
|
||||
module TestCanRethrowRejectedPromises {
|
||||
namespace TestCanRethrowRejectedPromises {
|
||||
|
||||
interface Foo {
|
||||
a: number;
|
||||
|
||||
@@ -13,7 +13,7 @@ declare function Q<T>(promise: Q.IPromise<T>): Q.Promise<T>;
|
||||
*/
|
||||
declare function Q<T>(value: T): Q.Promise<T>;
|
||||
|
||||
declare module Q {
|
||||
declare namespace Q {
|
||||
interface IPromise<T> {
|
||||
then<U>(onFulfill?: (value: T) => U | IPromise<U>, onReject?: (error: any) => U | IPromise<U>): IPromise<U>;
|
||||
}
|
||||
@@ -206,7 +206,7 @@ declare module Q {
|
||||
* Returns a promise that is fulfilled with an array containing the fulfillment value of each promise, or is rejected with the same rejection reason as the first promise to be rejected.
|
||||
*/
|
||||
export function all<T>(promises: IPromise<T>[]): Promise<T[]>;
|
||||
|
||||
|
||||
/**
|
||||
* Returns a promise for the first of an array of promises to become settled.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user