2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/declFileImportModuleWithExportAssignment_1.ts ===
|
|
|
|
/**This is on import declaration*/
|
|
|
|
import a1 = require("declFileImportModuleWithExportAssignment_0");
|
2014-08-28 21:40:58 +02:00
|
|
|
>a1 : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var a = a1;
|
2014-08-25 19:36:12 +02:00
|
|
|
>a : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; }
|
|
|
|
>a1 : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; }
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
a.test1(null, null, null);
|
|
|
|
>a.test1(null, null, null) : void
|
2014-08-25 19:36:12 +02:00
|
|
|
>a.test1 : a1.connectModule
|
|
|
|
>a : { (): a1.connectExport; test1: a1.connectModule; test2(): a1.connectModule; }
|
|
|
|
>test1 : a1.connectModule
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
=== tests/cases/compiler/declFileImportModuleWithExportAssignment_0.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
|
|
|
|