Asynchronous load of TypeScript declarations with no exports
问题 I have a number of jQuery plugins that I would like to load using the AMD pattern in TypeScript. For example, I might have this structure: /lib/jquery.myplugin.js /app.ts The plugin simply extends jQuery. It provides no new top-level functions or variables. An example might be: // jquery.myplugin.js jQuery.fn.myExample = function() { ... } The corresponding jquery.myplugin.d.ts file looks like: interface JQuery { myExample(); } So that now in app.ts I can call something like $('#my-element')