2014-07-13 01:04:16 +02:00
|
|
|
//// [cloduleTest1.ts]
|
|
|
|
declare function $(selector: string): $;
|
|
|
|
interface $ {
|
|
|
|
addClass(className: string): $;
|
|
|
|
}
|
|
|
|
module $ {
|
|
|
|
export interface AjaxSettings {
|
|
|
|
}
|
|
|
|
export function ajax(options: AjaxSettings) { }
|
|
|
|
}
|
|
|
|
var it: $ = $('.foo').addClass('bar');
|
|
|
|
|
|
|
|
|
|
|
|
//// [cloduleTest1.js]
|
|
|
|
var $;
|
|
|
|
(function ($) {
|
2015-02-07 03:45:09 +01:00
|
|
|
function ajax(options) { }
|
2014-07-13 01:04:16 +02:00
|
|
|
$.ajax = ajax;
|
|
|
|
})($ || ($ = {}));
|
|
|
|
var it = $('.foo').addClass('bar');
|