view raw
Gayan Ranasinghe Gayan Ranasinghe - 7 months ago 63
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?


You can put the following line before the function call:

declare var loadImage;