2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/declareFileExportAssignment.ts ===
|
|
|
|
module m2 {
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : { (): connectExport; test1: connectModule; test2(): connectModule; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export interface connectModule {
|
|
|
|
>connectModule : connectModule
|
|
|
|
|
|
|
|
(res, req, next): void;
|
|
|
|
>res : any
|
|
|
|
>req : any
|
|
|
|
>next : any
|
|
|
|
}
|
|
|
|
export interface connectExport {
|
|
|
|
>connectExport : connectExport
|
|
|
|
|
|
|
|
use: (mod: connectModule) => connectExport;
|
|
|
|
>use : (mod: connectModule) => connectExport
|
|
|
|
>mod : connectModule
|
|
|
|
>connectModule : connectModule
|
|
|
|
>connectExport : connectExport
|
|
|
|
|
|
|
|
listen: (port: number) => void;
|
|
|
|
>listen : (port: number) => void
|
|
|
|
>port : number
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
var m2: {
|
2014-08-25 19:36:12 +02:00
|
|
|
>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
(): m2.connectExport;
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>connectExport : m2.connectExport
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
test1: m2.connectModule;
|
2014-08-25 19:36:12 +02:00
|
|
|
>test1 : m2.connectModule
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>connectModule : m2.connectModule
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
test2(): m2.connectModule;
|
2014-08-25 19:36:12 +02:00
|
|
|
>test2 : () => m2.connectModule
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : unknown
|
2014-08-25 19:36:12 +02:00
|
|
|
>connectModule : m2.connectModule
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export = m2;
|
2014-08-25 19:36:12 +02:00
|
|
|
>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|