title: TypeScript how to declare global variable in every file?
body: <p>I like to define a globally available helper</p>
  
  <pre><code>global.p = console.log.bind(console)
  </code></pre>
  
  <p>So I can use <code>p('some message')</code> instead of <code>console.log('some message')</code>.</p>
  
  <p>But TypeScript complains that <code>p</code> is undefined. Is there a way to tell the TypeScript compiler that there's a global variable <code>p</code> that's available in every file?</p>