cannot find module file-saver or its corresponding type declarations.
51
after install file saver:
npm install file-saver --save
npm install @types/file-saver --save-dev
needs import only in the component:
import * as FileSaver from 'file-saver';
and use:
FileSaver.saveAs(blob, "title.txt");