I am attempting to use an npm module, pretty-file-icons, within my Ionic/Angular app. From what I can tell, this module does not have typings.
I tried adding declare module 'pretty-file-icons' to src/typings.d.ts and then, within a component using:
import * as prettyFileIcons from 'pretty-file-icons';
export class HandoutsPage {
constructor(public fileIcons: prettyFileIcons) {}
}
Using this, I get the error Can't resolve all parameters for Handouts Page. I have found several help articles online for this, but they all seem to be for SystemJS but, as I understand it, that has been replaced by Webpack.
How do I import this module so that I can use it within components?