Gayan Ranasinghe Gayan Ranasinghe - 1 year ago 142
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;