title: Angular - Could not find a declaration file for module 'file-saver'
body: <p>In my Angular-12 project I installed file-saver:</p>
  <pre><code>npm install file-saver@2.0.5
  
  npm install --save exceljs
  
  ng generate service services/export-excel
  </code></pre>
  <p>Then in the export-excel service, I added:</p>
  <pre><code>import * as fs from 'file-saver';
  </code></pre>
  <p>I got <strong>file-saver</strong> highlighted</p>
  <p>with this error:</p>
  <blockquote>
  <p>Could not find a declaration file for module 'file-saver'. 'c:/xampp/htdocs/myapp/node_modules/file-saver/dist/FileSaver.min.js' implicitly has an 'any' type.
  Try <code>npm i --save-dev @types/file-saver</code> if it exists or add a new declaration (.d.ts) file containing <code>declare module 'file-saver';</code></p>
  </blockquote>
  <p>But I didn't use:</p>
  <blockquote>
  <p>@types/file-saver</p>
  </blockquote>
  <p>How do I get this error resolved?</p>
  <p>Thanks</p>