summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Pannell <admin@sierrasoftworks.com>2016-10-04 19:36:22 +0100
committerBenjamin Pannell <admin@sierrasoftworks.com>2016-10-04 19:37:03 +0100
commitbf8059dee04e70ae8890692d92f57e7a8323f7fb (patch)
tree76b9f882ce94592a1967be6b28a0597fd1b764ea
parent5caba17e4e13cd1cb5cd329e757cec320c8ffde0 (diff)
downloadsendgrid-nodejs-bf8059dee04e70ae8890692d92f57e7a8323f7fb.zip
sendgrid-nodejs-bf8059dee04e70ae8890692d92f57e7a8323f7fb.tar.gz
sendgrid-nodejs-bf8059dee04e70ae8890692d92f57e7a8323f7fb.tar.bz2
fix: Allow emptyRequest() to be called with a request object
Fixes an issue raised in #308
-rw-r--r--index.d.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.d.ts b/index.d.ts
index b7a39fc..11e1d10 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -463,7 +463,7 @@ declare namespace SendGrid {
export class SendGrid {
constructor(apiKey: string, host?: string, globalHeaders?: { [header: string]: string; });
- emptyRequest(): SendGrid.Rest.Request;
+ emptyRequest(data?: SendGrid.Rest.Request): SendGrid.Rest.Request;
API(request: SendGrid.Rest.Request, callback: (response: SendGrid.Rest.Response) => void): void;
}