Declaring a JS library for use with TypeScript
问题 There are many threads for similar issues, but as far as I can tell this one is unique. I'm using jQuery Address plugin in my app and would like to use it in a TypeScript file. Unfortunately there is no DefinitelyTyped script available for the library. When I try to use jQuery.address, I get: The property 'address' does not exist on value of type 'jQueryStatic' Per this thread, I've tried to define address inside of jquery.d.ts : interface JQueryStatic { address(options): any; ... } And I