mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-27 12:21:19 +08:00
Overload then, catch, finally definitions
This commit is contained in:
1 parent
b545524610
commit
14cc56099a
1 file changed
+7
-1
Vendored
+7
-1
@@ -12,7 +12,13 @@ declare module 'request-promise' {
|
||||
import request = require('request');
|
||||
import http = require('http');
|
||||
|
||||
interface RequestPromise extends request.Request, Promise<any> {
|
||||
interface RequestPromise extends request.Request {
|
||||
then<TResult>(onfulfilled?: (value: any) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => TResult | PromiseLike<TResult>): Promise<TResult>;
|
||||
then<TResult>(onfulfilled?: (value: any) => TResult | PromiseLike<TResult>, onrejected?: (reason: any) => void): Promise<TResult>;
|
||||
catch(onrejected?: (reason: any) => any | PromiseLike<any>): Promise<any>;
|
||||
catch(onrejected?: (reason: any) => void): Promise<any>;
|
||||
finally<TResult>(handler: () => PromiseLike<TResult>): Promise<any>;
|
||||
finally<TResult>(handler: () => TResult): Promise<any>;
|
||||
promise(): Promise<any>;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user