Your question is not clear; however, from your comment, “Imagine if I have a plugin that does not have a .ts file,” you seem to be asking: how can I use the jQuery plugin, which is not yet a definition file .d.ts.
jQuery TypeScript, jQuery. TypeScript, $() - , jQuery.
, .d.ts, TypeScript.
, TypeScript, , jQuery any. , IDE - .
, , "Hello World",
(function( $ ) {
$.fn.helloWorld = function() {
this.html('Hello World');
return this;
}
})(jQuery);
interface JQuery {
helloWorld();
}
TypeScript , , .
. jQuery TypeScript
, ,
Typed - , , JavaScript TypeScript, jQuery