summaryrefslogtreecommitdiffstats
path: root/index.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'index.d.ts')
-rw-r--r--index.d.ts5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.d.ts b/index.d.ts
index f1561af..b7a39fc 100644
--- a/index.d.ts
+++ b/index.d.ts
@@ -456,6 +456,8 @@ declare namespace SendGrid {
export interface SendGridConstructor {
(apiKey: string, host?: string, globalHeaders?: { [header: string]: string; }): SendGrid;
constructor(apiKey: string, host?: string, globalHeaders?: { [header: string]: string; }): SendGrid;
+
+ mail: SendGrid.Helpers.Mail.Helper;
}
export class SendGrid {
@@ -467,6 +469,5 @@ declare namespace SendGrid {
}
}
-declare const mail: SendGrid.Helpers.Mail.Helper;
declare const sendGrid: SendGrid.SendGridConstructor;
-export {mail, sendGrid as SendGrid}; \ No newline at end of file
+export = sendGrid;