title: Firebase deploy returns error at tsc command
body: <p>I've setup a Firebase project to create some basic Firebase Functions.<br>
  In the project I'm using TypeScript</p>
  
  <p>Following the <a href="https://firebase.google.com/docs/cli/#initialize_a_firebase_project" rel="noreferrer">Firebase official documentation</a> I created my project. </p>
  
  <p>The last step, <code>firebase deploy --only functions</code>, gave an error with the <code>tsc</code> command.</p>
  
  <pre><code>$ firebase deploy --only functions
  
  === Deploying to ‘my-project’…
  
  i  deploying functions
  Running command: npm --prefix "$RESOURCE_DIR" run lint
  
  &gt; functions@ lint /path/to/functions
  &gt; tslint --project tsconfig.json
  
  Running command: npm --prefix "$RESOURCE_DIR" run build
  
  &gt; functions@ build /path/to/functions
  &gt; tsc
  
  node_modules/firebase-functions/lib/function-builder.d.ts(60,95): error TS1005: ';' expected.
  node_modules/firebase-functions/lib/function-builder.d.ts(60,96): error TS1003: Identifier expected.
  node_modules/firebase-functions/lib/function-builder.d.ts(60,116): error TS1005: ';' expected.
  npm ERR! code ELIFECYCLE
  npm ERR! errno 2
  npm ERR! functions@ build: `tsc`
  npm ERR! Exit status 2
  npm ERR! 
  npm ERR! Failed at the functions@ build script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /some/path/.npm/_logs/2019-02-03T00_10_30_573Z-debug.log
  
  Error: functions predeploy error: Command terminated with non-zero exit code2
  
  Having trouble? Try firebase deploy --help
  </code></pre>
  
  <p>It seems that some of the Firebase library code does not pass the <code>tsc</code> compile/transpile step.
  I'm looking for a way to make this deploy step pass.</p>
  
  <p>I've followed the suggestion given at <a href="https://github.com/firebase/firebase-tools/issues/749" rel="noreferrer">this GitHub issue</a>, which included:</p>
  
  <ul>
  <li>Adding <code>--skipLibCheck</code> to the <code>tsc</code> command</li>
  <li>Adding <code>skipLibCheck</code> to the project's generated <code>functions/tsconfig.json</code></li>
  <li>Adding <code>isolateModules</code> to <code>functions/tsconfig.json</code></li>
  <li>Adding <code>./functions/node_modules/@types</code> to the <code>typeRoots</code> array in the <code>functions/tsconfig.json</code> file.</li>
  <li>Adding <code>dom</code> to <code>compilerOptions.lib</code> in <code>functions/tsconfig.json</code></li>
  </ul>
  
  <p>None of the above steps have worked for me.</p>
  
  <p>How can I make my deployment to Firebase succeed?</p>