Skip to content

Commit

Permalink
Merge pull request #1 from Superd22/fix/typescript-definitions
Browse files Browse the repository at this point in the history
fix: update definitions for tsc 2.6, fixes sendgrid#618
  • Loading branch information
Superd22 authored Dec 23, 2017
2 parents d777dc6 + 89b988a commit b96c106
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/client/src/client.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,5 @@ declare class Client {
request(data: ClientRequest, cb?: (err: ResponseError, response: [ClientResponse, any]) => void): Promise<[ClientResponse, any]>;
}

export = new Client()
declare const client: Client
export = client
6 changes: 3 additions & 3 deletions packages/helpers/classes/email-address.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ export default class EmailAddress {
/**
* From data
*/
fromData(data: EmailData);
fromData(data: EmailData): void;

/**
* Set name
*/
setName(name: string);
setName(name: string): void;

/**
* Set email (mandatory)
*/
setEmail(email: string);
setEmail(email: string): void;

toJSON(): EmailJSON;
}
3 changes: 2 additions & 1 deletion packages/mail/src/mail.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,5 @@ declare class MailService {
sendMultiple(data: MailData, cb?: (error: Error|ResponseError, result: [ClientResponse, {}]) => void): Promise<[ClientResponse, {}]>;
}

export = new MailService()
declare const mail: MailService
export = mail

0 comments on commit b96c106

Please sign in to comment.