2014-08-28 01:58:31 +02:00
|
|
|
=== tests/cases/compiler/declareFileExportAssignmentWithVarFromVariableStatement.ts ===
|
|
|
|
module m2 {
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : { (): connectExport; test1: connectModule; test2(): connectModule; }
|
2014-08-28 01:58:31 +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 x = 10, m2: {
|
|
|
|
>x : number
|
|
|
|
>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; }
|
|
|
|
|
|
|
|
(): m2.connectExport;
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : unknown
|
2014-08-28 01:58:31 +02:00
|
|
|
>connectExport : m2.connectExport
|
|
|
|
|
|
|
|
test1: m2.connectModule;
|
|
|
|
>test1 : m2.connectModule
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : unknown
|
2014-08-28 01:58:31 +02:00
|
|
|
>connectModule : m2.connectModule
|
|
|
|
|
|
|
|
test2(): m2.connectModule;
|
|
|
|
>test2 : () => m2.connectModule
|
2014-08-28 21:40:58 +02:00
|
|
|
>m2 : unknown
|
2014-08-28 01:58:31 +02:00
|
|
|
>connectModule : m2.connectModule
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
export = m2;
|
|
|
|
>m2 : { (): m2.connectExport; test1: m2.connectModule; test2(): m2.connectModule; }
|
|
|
|
|