Sendgrid-nodejs: Update TypeScript definition to support v6.X

Created on 28 Aug 2017  路  6Comments  路  Source: sendgrid/sendgrid-nodejs

Issue Summary

v6.X is a major breaking change from v5.X, so the TypeScript definition needs an update.

help wanted community enhancement

All 6 comments

cc @SPARTAN563

Will take a look, can't promise that I'll get to it this week with SRECon, however I'll do what I can.

No worries @SPARTAN563, enjoy the conference!

Meanwhile SPARTAN563's PR gets reviewed, we can trick things a bit to work with Typescript:

// SINCE WE DONT HAVE TYPINGS READY FOR '@sendgrid/mail'
// REQUIRE w. any WILL  BE USED

/// <amd-dependency path="model/tree" />
declare var require: (moduleId: string) => any;
var sgMail = require('@sendgrid/mail');

Thanks @bogacg!

Solved with #430

Was this page helpful?
0 / 5 - 0 ratings