Merge remote-tracking branch 'upstream/master' into geometry.d.ts

This commit is contained in:
Toshiya Nakakura
2015-06-28 09:49:16 +09:00
5 changed files with 14975 additions and 2649 deletions
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
+4185 -2648
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -164,6 +164,9 @@ promise = when(1).catch((err: any) => when(2));
promise = when(1).catch((err: any) => err.good, (err: any) => 2);
promise = when(1).catch((err: any) => err.good, (err: any) => when(2));
promise = when(1).catch(Error, (err: any) => 2);
promise = when(1).catch(Error, (err: any) => when(2));
//TODO: error constructor predicate
promise = when(1).otherwise((err: any) => 2);
+1 -1
View File
@@ -174,7 +174,7 @@ declare module When {
// Make sure you test any usage of these overloads, exceptionType must
// be a constructor with prototype set to an instance of Error.
catch<U>(exceptionType: any, onRejected?: (reason: any) => Promise<U>): Promise<U>;
catch<U>(exceptionType: any, onRejected?: (reason: any) => U | Promise<U>): Promise<U>;
finally(onFulfilledOrRejected: Function): Promise<T>;