title: extending angular global object in typescript
body: <p>I'm using Angularjs and Typescript and I would like to extend the angular object with a custom function like this:</p>
  
  <pre><code>angular.executeAfterDigest(function(){...});
  </code></pre>
  
  <p>How do I go around and do this? I suspect I need to extend IAngularStatic somehow or can I use something like angular.prototype? (I'm not very experienced with extending javascript object to start with). </p>
  
  <p>Maybe it's more proper to create an "angularHelperService" that get injected instead.</p>