Allow method chaining in @sendgrid/mail #682
Labels
difficulty: medium
fix is medium in difficulty
type: community enhancement
feature request not on Twilio's roadmap
Issue Summary
Very minor, but it would be nice to allow method chaining in the
MailService
of@sendgrid/mail
so that setting the API key could be handled on one line:This is all it would require as far as I can tell:
(It looks like this pattern is used here in
@sendgrid/client
https://github.com/sendgrid/sendgrid-nodejs/blob/master/packages/client/src/classes/client.js#L53-L67 as well.)Steps to Reproduce
@sendgrid/mail
Technical details:
The text was updated successfully, but these errors were encountered: