mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-10-28 12:30:21 +08:00
Add definition for missing replyWithError method in nock
https://github.com/pgte/nock/blob/a407b73ac8f0daa947dccf4a29b86b8f99138157/lib/scope.js#L62
This commit is contained in:
1 parent
0a51ae619b
commit
d14a6d94a6
1 file changed
+1
Vendored
+1
@@ -56,6 +56,7 @@ declare module "nock" {
|
||||
reply(responseCode: number, body?: Object, headers?: Object): Scope;
|
||||
reply(responseCode: number, callback: (uri: string, body: string) => string, headers?: Object): Scope;
|
||||
replyWithFile(responseCode: number, fileName: string): Scope;
|
||||
replyWithError(errorMessage: string): Scope;
|
||||
|
||||
defaultReplyHeaders(headers: Object): Scope;
|
||||
|
||||
|
||||
Reference in new issue
Block a user