Just diving into my first project with Ionic2 (TypeScript) and I'm trying to incorporate the npm JavaScript package. Specifically, I am utilizing https://github.com/huttarichard/instagram-private-api
I'm a bit confused on how to correctly use import
for a class instead of require
, and also uncertain about the proper way to handle values in the constructor class.
var Client = require('instagram-private-api').V1;
var device = new Client.Device('someuser');