title: Typescript global variables
body: <p>Is there a convenient way to have global variables accessible within modules,without compiler errors, ie CANVAS_WIDTH used below?</p>
  
  <pre><code>    export class Bullet {
  
  
          x: number = 22;
          y: number = 22;
  
          constructor (speed: number) {
              this.xVelocity = speed;
          }
  
          inBounds() {
              return this.x &gt;= 0 &amp;&amp; this.x &lt;= CANVAS_WIDTH &amp;&amp;
                  this.y &gt;= 0 &amp;&amp; this.y &lt;= CANVAS_HEIGHT;
          };
  }
  }
  </code></pre>