I'm trying Angular 5, starting a project from angular-cli. In this project, I would like to use a NPM module : J2M (https://github.com/kylefarris/J2M), so I looked online and saw these two commands :
npm install j2m --save
npm install @types/j2m --save-dev
Unfortunately, @types/j2m doesn't exist at all. So I tried to find a way to define my own typings but didn't manage to succeed...
I'm using this code :
import * as J2M from "j2m";
...
console.log(J2M.toM(value));
But either "j2m" is not recognized, or "toM" is not a function, based on the samples I found online...
So, what's the proper way to import this module?
Thanks,