title: Can I override document.ready in typescript
body: <p>I have an application which has different pages and roughly every page has it's own js (which are generated by typescript compiler). document.ready method for every page has some shared attributes and I'm looking to put the shared functions / properties into a base typescript class. </p>
  
  <p>So it should look like    </p>
  
  <pre><code> class PageX extends BasePage
      {
          onLoad =&gt; which should act like document.ready
      }
  </code></pre>
  
  <p>can this be done? I'm not sure if it's possible?</p>