title: What is right way to use global package with TypeScript?
body: <p>I am using <a href="https://www.npmjs.com/package/global" rel="nofollow noreferrer">global</a> package to enable using some methods of enzyme  in my tests files without importing:</p>
  <pre><code>import { configure, shallow, render, mount } from 'enzyme';
     .....
  global.shallow = shallow;
  global.render = render;
  global.mount = mount;
  </code></pre>
  <p>So I am able to write</p>
  <pre><code>const component = shallow(&lt;Input {...props} /&gt;);
  </code></pre>
  <p>in my test file without import of <code>shallow</code> method</p>
  <p>But typescript doesn't know about this and I get error:
  <code> [ts] Cannot find name 'shallow'.</code></p>
  <p>How can I tell to typescript about these globals?</p>