title: ERROR: TypeError: Cannot read property 'create' of undefined on stripe.fileUploads.create
body: <p>When i try to use stripe.fileUploads.create i get that create is undefined?</p>
  
  <p>ERROR: TypeError: Cannot read property 'create' of undefined</p>
  
  <p>i followed the request format in the docs using the stripe/typings library in node.js <a href="https://stripe.com/docs/api/files/create" rel="nofollow noreferrer">https://stripe.com/docs/api/files/create</a></p>
  
  <pre><code>/**
   * "@types/stripe": "^6.31.23"
   * "stripe": "^7.8.0" */
  
  import * as Stripe from 'stripe';
  const stripe = new Stripe('mykey');
  
  function uploadFileToStripe(fileUrl:string,fileType:string,fileName:string):Promise&lt;Stripe.fileUploads.IFileUpdate&gt;{
      const upload: Promise&lt;Stripe.fileUploads.IFileUpdate&gt; = 
      stripe.fileUploads.create(
          {
              file: {
                  data: fileUrl,
                  name: fileName,
                  type: 'image/jpeg',
              },
              purpose: 'identity_document',
          }
      );
      return upload.then(
          (document: Stripe.fileUploads.IFileUpdate) =&gt; {
              console.log('Document upload ', document);
              return document;
          }   
      ).catch(
          (_error: any) =&gt; {
              console.log('Error uploading document ', _error);
              return _error;
          }
      );
  }
  </code></pre>