mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +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:
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