35 lines
744 B
Text
35 lines
744 B
Text
|
=== tests/cases/compiler/cloduleTest1.ts ===
|
||
|
declare function $(selector: string): $;
|
||
|
>$ : typeof $
|
||
|
>selector : string
|
||
|
>$ : $
|
||
|
|
||
|
interface $ {
|
||
|
>$ : $
|
||
|
|
||
|
addClass(className: string): $;
|
||
|
>addClass : (className: string) => $
|
||
|
>className : string
|
||
|
>$ : $
|
||
|
}
|
||
|
module $ {
|
||
|
>$ : typeof $
|
||
|
|
||
|
export interface AjaxSettings {
|
||
|
>AjaxSettings : AjaxSettings
|
||
|
}
|
||
|
export function ajax(options: AjaxSettings) { }
|
||
|
>ajax : (options: AjaxSettings) => void
|
||
|
>options : AjaxSettings
|
||
|
>AjaxSettings : AjaxSettings
|
||
|
}
|
||
|
var it: $ = $('.foo').addClass('bar');
|
||
|
>it : $
|
||
|
>$ : $
|
||
|
>$('.foo').addClass('bar') : $
|
||
|
>$('.foo').addClass : (className: string) => $
|
||
|
>$('.foo') : $
|
||
|
>$ : typeof $
|
||
|
>addClass : (className: string) => $
|
||
|
|