mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Add generics types on as/error method
This commit is contained in:
Vendored
+2
-2
@@ -74,8 +74,8 @@ declare namespace Parse {
|
||||
|
||||
class Promise<T> {
|
||||
|
||||
static as(resolvedValue: any): Promise<any>;
|
||||
static error(error: any): Promise<any>;
|
||||
static as<U>(resolvedValue: U): Promise<U>;
|
||||
static error<U>(error: U): Promise<U>;
|
||||
static is(possiblePromise: any): Boolean;
|
||||
static when(promises: Promise<any>[]): Promise<any>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user