title: JS constructor can not see the variable
body: <p>I'm trying to use Twilio Access Token on Firebase Functions with TypeScript.</p>
  
  <pre><code>export const returnToken = functions.https.onRequest((req, res) =&gt; {
    const twilioAccessToken = twilio.jwt.AccessToken;
    const envconf = functions.config();
    const twilioAccountSid = envconf.twilio.sid; //saved them on environment
    console.log(twilioAccountSid); //prints out fine
    console.log(typeof twilioAccountSid !== "undefined"); //returns true
    const twilioApiKey = envconf.twilio.apikey;
    console.log(twilioApiKey); //prints fine too
    const twilioApiSecret = envconf.twilio.apisecret;
    console.log("gonna make a token"); //prints 
  
    const token = twilioAccessToken( //here it says TypeError: Cannot set property 'accountSid' of undefined
      twilioAccountSid,
      twilioApiKey,
      twilioApiSecret
    )
    console.log("gonna make a grant");
    const grant = new twilioAccessToken.VideoGrant();
    token.addGrant(grant);
    grant.room = "someroom";
    token.identity = "someid";
    res.send(token.toJwt());
  })
  </code></pre>
  
  <p>and I get an error for the twilioAccessToken constructor which says
    <code>TypeError: Cannot set property 'accountSid' of undefined</code>  </p>