title: While importing sendgrid mail it is not working
body: <p>I wanted to send mail using @sendgrid/mail but while I was importing it it is not working. My Code snippet is as below,</p>
  
  <pre><code>import * as sgMail from '@sendgrid/mail';
  
  function sendMail(msg) {
    sgMail.setApiKey("API-KEY");
    sgMail.send(msg, (err, result) =&gt; {
      if(err){
          console.error(err);
      }
  
      console.log(result);
    });
  }
  
  const obj = {
      to: "mail@gmail.com",
      from: "no-reply@gmail.com",
      subject: "abc",
      text: "abc",
      html: "&lt;h1&gt;Working&lt;/h1&gt;",
  }
  sendMail(obj);
  </code></pre>
  
  <p>This is the code I've did, so now the problem is sgMail.setApiKey is not a function error pops.</p>
  
  <p>If I remove setApiKet then sgMail.send is not a function error pops.</p>
  
  <p>So, If you have any solution then let me know.</p>