Sendgrid version: 4.7.1
Trying to make use of sendgrid in typescript. Cannot make use of the SendGrid namespace.
Would be great to have some working examples of using typescript with sendgrid.
npm installnpm test (which runs tsc)Thank you for the letting us know this is an issue! We have added this to our backlog and will respond as soon as we possibly can. I am sorry for the delay.
cc @SPARTAN563
Will take a look :+1:
Sorry about that, just a problem with my demo project (it was out of date). I've fixed that up and all should be working now, feel free to let me know if you run into any further issues.
For reference sake, the demo project previously imported using import {SendGrid} from "sendgrid"; where it should have been using import * as SendGrid from "sendgrid".
Thank you @SPARTAN563, your awesomeness is appreciated :)
Thanks guys!
Most helpful comment
Sorry about that, just a problem with my demo project (it was out of date). I've fixed that up and all should be working now, feel free to let me know if you run into any further issues.
For reference sake, the demo project previously imported using
import {SendGrid} from "sendgrid";where it should have been usingimport * as SendGrid from "sendgrid".