title: How should typescript module augmentations be properly imported/included into an angular library or application?
body: <p>I have found many examples on how to setup module augmentation files for adding functionality to a node_module, but I'm a little confused on how they should be included in the typescript compilation. Should I just import the file that does the augmentation at the top of <code>main.ts</code> (or <code>public_api.ts</code> for a library) like this:</p>
  
  <pre><code>import './moduleaugmentationfile';
  </code></pre>
  
  <p>Or is there some other standard way to make this added functionality available across the application.</p>
  
  <p><strong>Edit:</strong><br>
  <a href="https://stackblitz.com/edit/angular-example-module-augmentation" rel="nofollow noreferrer">This</a> is an example app. The example module augmentation is in <code>moduleaugmentation.ts</code>. I added a comment in the <code>main.ts</code> that explains my confusion about how best to include the module augmentation.</p>