Gayan Ranasinghe Gayan Ranasinghe - 1 year ago 211
TypeScript Question

Typescript declaration for global function

I am trying to use image loading third party plugin blueimp. That plugin has global function

function (img) {
{ maxWidth: 600 }

How can I call this function using typescript?

Answer Source

You can put the following line before the function call:

declare var loadImage;


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download