2014-09-12 22:35:07 +02:00
|
|
|
tests/cases/compiler/multipleExportAssignments.ts(13,1): error TS2308: A module cannot have more than one export assignment.
|
|
|
|
tests/cases/compiler/multipleExportAssignments.ts(14,1): error TS2308: A module cannot have more than one export assignment.
|
|
|
|
|
|
|
|
|
2014-07-13 01:04:16 +02:00
|
|
|
==== tests/cases/compiler/multipleExportAssignments.ts (2 errors) ====
|
|
|
|
interface connectModule {
|
|
|
|
(res, req, next): void;
|
|
|
|
}
|
|
|
|
interface connectExport {
|
|
|
|
use: (mod: connectModule) => connectExport;
|
|
|
|
listen: (port: number) => void;
|
|
|
|
}
|
|
|
|
var server: {
|
|
|
|
(): connectExport;
|
|
|
|
test1: connectModule;
|
|
|
|
test2(): connectModule;
|
|
|
|
};
|
|
|
|
export = server;
|
|
|
|
~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2308: A module cannot have more than one export assignment.
|
2014-07-13 01:04:16 +02:00
|
|
|
export = connectExport;
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~
|
2014-09-12 00:19:57 +02:00
|
|
|
!!! error TS2308: A module cannot have more than one export assignment.
|
2014-07-13 01:04:16 +02:00
|
|
|
|
|
|
|
|