Skip to content

Commit

Permalink
fix: Correct TypeScript definitions
Browse files Browse the repository at this point in the history
See sendgrid#251 and <notheotherben/sendgrid-ts-demo#1> for more details on what wasn't working
  • Loading branch information
spartan563 authored and shkabo committed Oct 5, 2016
1 parent 9f15a72 commit 4af97d8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -467,6 +469,5 @@ declare namespace SendGrid {
}
}

declare const mail: SendGrid.Helpers.Mail.Helper;
declare const sendGrid: SendGrid.SendGridConstructor;
export {mail, sendGrid as SendGrid};
export = sendGrid;

0 comments on commit 4af97d8

Please sign in to comment.