summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBenjamin Pannell <admin@sierrasoftworks.com>2016-09-29 23:54:06 +0100
committerBenjamin Pannell <admin@sierrasoftworks.com>2016-09-29 23:54:06 +0100
commit8003ad1173d23cd4ac7a8417df76c166312cd56e (patch)
tree3eb85bf33f5ffc93ea2c72229463f0e8f39dcc16
parent5caba17e4e13cd1cb5cd329e757cec320c8ffde0 (diff)
downloadsendgrid-nodejs-8003ad1173d23cd4ac7a8417df76c166312cd56e.zip
sendgrid-nodejs-8003ad1173d23cd4ac7a8417df76c166312cd56e.tar.gz
sendgrid-nodejs-8003ad1173d23cd4ac7a8417df76c166312cd56e.tar.bz2
feat: Add support for promises to the TypeScript definitions file
-rw-r--r--index.d.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.d.ts b/index.d.ts
index b7a39fc..4b5faa3 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -466,6 +466,7 @@ declare namespace SendGrid {
emptyRequest(): SendGrid.Rest.Request;
API(request: SendGrid.Rest.Request, callback: (response: SendGrid.Rest.Response) => void): void;
+ API(request: SendGrid.Rest.Request): PromiseLike<SendGrid.Rest.Response>;
}
}