title: error TS2318: Cannot find global type 'Object'
body: <p>Very simple project, no tsconfig.json just using the command line:</p>
  
  <pre><code>tsc --jsx react --target es6 --lib dom src/lib/Fetch.tsx
  </code></pre>
  
  <p>and I get the following errors and I don't understand why, these types are literally defined everywhere, and specifically in lib.es6.d.ts which is I believe included by <code>--target es6</code></p>
  
  <pre><code>error TS2318: Cannot find global type 'Array'.
  error TS2318: Cannot find global type 'Boolean'.
  error TS2318: Cannot find global type 'Function'.
  error TS2318: Cannot find global type 'IArguments'.
  error TS2318: Cannot find global type 'Number'.
  error TS2318: Cannot find global type 'Object'.
  error TS2318: Cannot find global type 'RegExp'.
  </code></pre>
  
  <p>Have the following dependencies installed</p>
  
  <pre><code>"dependencies": {
    "@types/react-dom": "^16.0.6",
    "@types/react": "^16.3.16",
    "react": "^16.4.0",
    "react-dom": "^16.4.0"
  },
  "devDependencies": {
    "@types/node": "^10.3.1",
    "typescript": "^2.9.1"
  }
  </code></pre>
  
  <p><em>RESOLVED</em></p>
  
  <p>Figured out my problem.  Having typescript installed locally, but was running the globally installed and older version typescript.  When I ran tsc via npm scripts it compiles with the following command:</p>
  
  <pre><code>tsc --jsx react --target es6 --module commonjs src/lib/Fetch.tsx
  </code></pre>