Hi,
I have installed jquery.panzoom through npm (https://www.npmjs.com/package/jquery.panzoom) but I can’t seem to import it for use within a jQuery function in my typescript file.
For jQuery itself, this line works fine: import * as $ from 'jquery';
I had to add the typings for jquery too.
On the other hand, I can’t figure out the syntax to import jquery.panzoom. I’ve tried:
import panzoom from 'jquery.panzoom';
import Panzoom from 'jquery.panzoom';
import { panzoom } from 'jquery.panzoom';
import { Panzoom } from 'jquery.panzoom';
No luck. Does anyone have any ideas?
Thanks.