21 lines
422 B
TypeScript
21 lines
422 B
TypeScript
//// [multipleExportAssignments.ts]
|
|
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;
|
|
export = connectExport;
|
|
|
|
|
|
|
|
//// [multipleExportAssignments.js]
|
|
var server;
|
|
module.exports = server;
|