title: Typescript: How to manage dependencies with conflicting type declarations?
body: <p>I have the error: <code>Subsequent variable declarations must have the same type</code></p>
  
  <p>This is occurring because two of my dependencies, both of which I need; declare the same type.</p>
  
  <p><strong>Jest</strong> :<code>/node_modules/@types/jest/index.d.ts</code> => <code>declare var test: jest.</code></p>
  
  <p><strong>testcafe</strong> <code>node_modules/testcafe//ts-defs/index.d.ts</code> => <code>declare var test: TestFn;</code></p>
  
  <p>My project is a react/redux project using webpack, babel and obviously Typescript.</p>
  
  <p>The error occurs when I am running my dev server via <code>npm start</code> which uses <code>webpack-dev-server</code>. It also creates a problem when I run <code>jest</code> since it uses testcafe's version of the declared <code>Test</code> type.</p>
  
  <p>How can this be resolved?</p>