Typescript definitions for sendgrid
I am trying to write a typescript app that uses sendgrid, but unlike with other definitions I got from typings the one from typings install sendgrid --ambient is causing me some headaches: I am able to instantiate the client like so: import * as sendgrid from 'sendgrid'; import Email = Sendgrid.Email; import Instance = Sendgrid.Instance; ... private client: Instance; ... this.client = sendgrid(user, key); And then later in the code I am trying to send an email, which is why ts is forcing me to import the EMail interface in the first place. var email = new Email(); ... this.client.send(email,